How do I make a 360 degree topdown movement

Get help using Construct 2

Post » Fri Jul 14, 2017 5:57 pm

Hi folks,

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.
B
5
S
1
Posts: 15
Reputation: 805

Post » Fri Jul 14, 2017 6:44 pm

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
B
22
S
9
G
4
Posts: 476
Reputation: 4,327

Post » Fri Jul 14, 2017 6:59 pm

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.
B
5
S
1
Posts: 15
Reputation: 805

Post » Sat Jul 15, 2017 9:58 am

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.
B
22
S
9
G
4
Posts: 476
Reputation: 4,327

Post » Sat Jul 15, 2017 10:36 am

That is really cool, this is helping me a lot, thanks!
B
5
S
1
Posts: 15
Reputation: 805

Post » Sat Jul 15, 2017 10:50 am

You're welcome :)
B
22
S
9
G
4
Posts: 476
Reputation: 4,327

Post » Wed Sep 06, 2017 12:56 pm

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?
B
5
S
1
Posts: 15
Reputation: 805

Post » Fri Sep 08, 2017 10:25 am

I suddenly remembered my Klik&Play days and hacked a car movement into doing what I want :)
B
5
S
1
Posts: 15
Reputation: 805


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests