[SOLVED] Asteroids - ship spinning erratically

Hello Devs,

So I’m trying to follow a tutorial on YT: *How To Make A Game Without Coding - Asteroids - Part 1*
What’s happening: at 1m55s (see tutorial on Top and my code Bottom) - my Player is spinning around erratically.

I have followed @McFlyGold advice and checked the naming of the player and compared to my code.

@McFlyGold: Make sure you are spelling your names correctly. For example, if your ship is named “Player” with a capital “P”, then make sure you use a capital “P” every time you spell the name “Player”

I even followed this page: Asteroids - GDevelop documentation but the issue still remains.

I do have Physics 2 behavior applied to my player.

I even renamed my player to Player - just to test.

What am I doing wrong?

I am using version 5.5.247

What do you mean by erratically?

My only thought is the ship’s origin isn’t in the exact center. If the point wasn’t in the center than the ship would spin off-center and wobble when torque was applied.

Thanks for replying @Keith_1357
My ship is 8x8

And as you can see, my Center/Origin are central.

Hi … by spinning erratically do you mean too fast? Could you screenshot the physics 2 settings. Its a very small sprite …is the sprite in the tutorial the same size?

1 Like

Hi @petlimpet,

You’re right. I recreated with assets from Kenny and it works. The ship is 98x75 px and my original was 8x8 px… but still not sure I understand what’s happening.

Hi …I think physics 2 uses parameters based on the size of the sprite and so if your sprite is small you need a smaller force. It requires lots of tweaking and trial and error if you’re new to it!

1 Like

Please RESOLVE this ticket.

Changed it to solved.