Hey guys - sorry if this isn't quite in the right place.
http://speedy.sh/Js29C/example.gmkI'm trying to get a basic space shooter working, and ideally would like the player object to face the top of the screen at all times whilst the room rotates around the player object when left and right directional buttons are pushed.
That isn't what's happening at the moment though - atm both the room view and the ship rotates (the ship slightly faster than the view). Sorry if that doesn't much sense, it's late and i've been trying to get this working for a while.
Any help is really really appreciated!
Creation event:
x_speed = 0
y_speed = 0
acc_speed = 0.5 //acceleration
speed_friction = 0.95 //1 = no friction
Step event:
view_angle[0] = direction
image_angle = direction
//step event
if keyboard_check(vk_left) direction += 3
if keyboard_check(vk_right) direction -= 3
if keyboard_check(vk_up) {
x_speed += lengthdir_x(acc_speed, direction)
y_speed += lengthdir_y(acc_speed, direction)
}
if keyboard_check(vk_down) {
x_speed -= lengthdir_x(acc_speed, direction)
y_speed -= lengthdir_y(acc_speed, direction)
}
x += x_speed
Edit: Sorry for the swearing in the title literally didn't even realise i'd written that!
Edit: Example of the file at the star of post.