This might be a bit of a beginners question, but I was wondering what the best way is to make a 360 degree topdown movement, to use for example in a shooter.
Have you checked out the top-down shooter template that comes bundled with C2? That would be a good place to start.
Select File>New>Template: Top-Down Shooter.
Also, this tutorial: https://www.scirra.com/tutorials/37/beg ... onstruct-2
Develop games in your browser. Powerful, performant & highly capable.
Thanks, but that template seems to be an 8-direction movement with mouse-aiming. I am looking for a 360 degree movement where you can turn with the arrow keys.
Do you mean like this?:
https://www.dropbox.com/s/7ywe7l3cacwh0 ... .capx?dl=0
Cursor keys to move.
You can adjust the sprite's instance variables to change speed, rotation and acceleration/deceleration.
That is really cool, this is helping me a lot, thanks!
Ok next question: the awesome example provided by mekonbekon is bound to the layout, so it does not move outside of the playfield. What is the best way to make the player behave the same way when colliding with solid obstacles so I can't move through walls?
I suddenly remembered my Klik&Play days and hacked a car movement into doing what I want