GML Visual Basic Movement Help

J

jmorris

Guest
Hi there, I'm fairly new to GMS, and I'm having some trouble with getting my player object to reverse.
The game is top down and the controls i had in mind are W forward, S reverse, A turn left, and D turn right.

For reference:
W is Key Pressed - Set Direction Variable - Direction : image_angle
Set Speed - Direction : 5
A is Key Pressed - Set Instance Rotation - Angle : 5
D is Key Pressed - Set Instance Rotation - Angle : -5

I set S to Set Direction Variable - Direction : -image_angle and the object flies off in a seemingly random direction, and the same thing happens if i use Reverse Direction. There's bound to be a simple answer to this simple issue, any help would be greatly appreciated. Thank you
 
Top