how to make a bullet to disable

Get help using Construct 2

Post » Wed Mar 19, 2014 12:23 am

Hello everyone, I'm new using the construct 2 and would like to know how to do to disable a weapon when my Variable reaches 0 and when this variable is greater when enabled.
B
1
Posts: 3
Reputation: 131

Post » Wed Mar 19, 2014 12:49 am

See if this gets you started.

The bullet had a bullet behavior added to it.
The weapon has an instance variable called ammo that starts with a value of 10.
When you press the space bar a bullet is spawned from the weapon and 1 is subtracted from the weapon's instance variable of ammo.
A condition of firing when you press the space bar is that the weapon's instance variable ammo must be greater than 0.
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Fri Apr 04, 2014 1:54 pm

thank you for showing the event, the problem was solved
B
1
Posts: 3
Reputation: 131


Return to How do I....?

Who is online

Users browsing this forum: worm1 and 21 guests