reloading system(how do i)

Get help using Construct 2

Post » Thu Jun 13, 2013 7:40 pm

i cannot figure out for the life of me how to make it so i can fire a bullet every x seconds and when reach 0 of ammo wait x seconds to reload then add my full clip size im new so any visual example would help greatly PLEASE HELP!
B
11
S
3
Posts: 25
Reputation: 1,306

Post » Thu Jun 13, 2013 8:01 pm

Global Variable AMMO
Subtract 1 from AMMO each time you shoot.

If AMMO = 0, wait X seconds, set AMMO to full again.

Does that make sense?
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Thu Jun 13, 2013 8:21 pm

yes that was my fisrt attempt but for some reason i could shoot continuously without a 3 second wait and how do i shoot every x seconds?
B
11
S
3
Posts: 25
Reputation: 1,306

Post » Thu Jun 13, 2013 9:05 pm

Post capx and someone (possibly me) will attempt/succeed in fixing it
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Thu Jun 13, 2013 10:03 pm

i found the issue the global variable wouldnt work but the instant variable does!! thanks for the help
B
11
S
3
Posts: 25
Reputation: 1,306


Return to How do I....?

Who is online

Users browsing this forum: David181, NECRONOMICRON and 24 guests