How do I move an object in an angle?

I’m thinking of making a game where an object moves in an angle that can be changed by pressing the left or right keys. Here’s a sketch of what I’m thinking.
rcdemo
I don’t know how to implement this control system in GDevelop 5.

You want to change the object’s angle (Object.Angle()) when you press the left and right keys. You then add a force at the object’s angle when the forward key is pressed,

Note though, have the image you use for the sprite facing to the right. If it’s facing up you’ll need to add a -90 to the angle when applying the force.

1 Like