How do I code my ship to fly diagonally using gamepad?

Get help using Construct 2

Post » Mon Jan 23, 2017 8:20 am

Hi,

I am creating a space shooter flying horizontal.

I was able to have my gamepad to control the ship to fly up down left right but I don't know how I can code the ship to fly diagonally. the ship always face right like the basic old days shooter.

Like if I press right and down at the same time the ship should be facing right while flying diagonally down right at an angle.

Please help. Thank you in advance.
B
24
S
4
Posts: 78
Reputation: 1,308

Post » Wed Jan 25, 2017 5:47 am

did you try the 8-direction behavior? :D try it if ever you didn't :D
B
79
S
31
G
7
Posts: 148
Reputation: 9,179

Post » Sat Feb 11, 2017 7:16 am

Yes I am using 8-directional but when I am holding right + down buttons the player doesn't fly 45 degrees.
B
24
S
4
Posts: 78
Reputation: 1,308

Post » Tue Feb 14, 2017 3:18 am

ohhhh you need 45 degrees? just press up + right that will make 45 degrees :D
B
79
S
31
G
7
Posts: 148
Reputation: 9,179


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 8 guests