8 Direction Shooting

Get help using Construct 2

Post » Fri Oct 12, 2012 2:50 pm

I would like to use WASD keys to shoot a a bullet any of the 8 directions, like how the 8 direction movement works.

Pseduo code
- On Key Pressed D : Set Angle 0
- IsKeyD set true

- On Key Pressed S : Set Angle 90

- On Key Pressed S : Set Angle 135
- AND IsKeyD true

But the last event never seems to run.
B
7
S
1
Posts: 74
Reputation: 1,232

Post » Fri Oct 12, 2012 4:39 pm

I got it sorted!
Probably over complicated but it is working.

Here's the capx, if anybody can think of a tidier way let me know.
https://dl.dropbox.com/u/97129282/forums/8bullet.capxmutuware2012-10-12 16:42:19
B
7
S
1
Posts: 74
Reputation: 1,232


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests