Asteroids like movement behaving VERY wrong? (SOLVED)

Greetings,

I would like to prototype something, for this, I’m looking for an Asteroids like movement. Not the one already provided, I’m looking for movement somewhat more faithful to the base game (In my prototype, the “ship” will move AWAY from the mouse, but I’ll cross that bridge when I get there).

I have a Construct 3 example on hand that provides great Asteroids movement:


brave_YePjEjHRXB

Therefore, I went to translate it to GDevelop’s logic:


It’s practically the same, but something is VERY wrong with how my object moves…?
GDevelop_Ij5ET7vKUx

My object just seems to awkwardly move wherever it wants, I have practically no control over it…

Have I messed something up?

Should the angle for cos() and sin() be in radians?

Edit: I’m not sure the position action needs time delta. Is dt in construct time delta? Then that part is OK.

1 Like

Ahhhhh, I had no idea there were angle conversion expressions, thanks, it’s working now!

Also, yes, dt is TimeDelta() in Construct 3

1 Like