So I'm making a moon lander type game and made an basic engine with a counter and flags.
At the start, the ship is staying on a platform and it's not moving.
+ Upon pressing Shift, every 5 seconds, The internal flag 0 of ship is off, I subtract 1 from the gravity counter to make the ship thrust upwards.
+ Every 2 seconds when the flag of ship is 0, I set the y position of the ship to the value of the counter to make it move with the thrust.
+ The speed is limited to a value of maximum +10 of the gravity counter so that it doesn't speed up and become unstoppable.
+ And when the flag of ship is 0, every 10 seconds, I add 1 to gravity counter so that there is a gravity for the ship to be pulled down.
My problem is, I can move the ship sideways but I can't rotate the thrust to push the ship sideways. I understand X and Y velocity and the ship itself is 8 directional but the thrust is 1 directional (thrusting upwards only).
Can anyone help me out on how to make it so that I can change the thrusth of the ship to the direction of the ship so it can push sideways (8 directional)?