Ammunition and firing angle

Get help using Construct 2

Post » Mon Oct 20, 2014 4:53 pm

I'm creating a boss level for my platformer and have him firing bullets atm,
but i can't figure out how to make it so i can only fire when i have ammo, i've made a
global ammo variable and have set it to if i have = 0 ammo then my "weapon" group is deactivated, and if i have
greater than 0 ammo it's activated, but atm it just fires away when i dont even have any ammo, Also when firing i can only fire one way, when i turn around it still fires the same way. Any help is greatly appreciated, Thank you.
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 25
Reputation: 427

Post » Mon Oct 20, 2014 5:45 pm

@SINON

EVENT 32
Add a condition should be:

Keyboard on space pressed
AND on ammo greater than 0

---> Then will spawn bullet and subtract from ammo
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Post » Mon Oct 20, 2014 6:11 pm

robertjs3 wrote:@SINON

EVENT 32
Add a condition should be:

Keyboard on space pressed
AND on ammo greater than 0

---> Then will spawn bullet and subtract from ammo


Thank you very much, worked a treat! :mrgreen:
B
5
S
1
Posts: 25
Reputation: 427


Return to How do I....?

Who is online

Users browsing this forum: 25games, Artcadev, mekonbekon and 24 guests