Combat system problem:Shoots while reloading

Get help using Construct 2

Post » Thu Mar 28, 2013 12:35 pm

Hello guys,
I've ran into a problem. I'm using 'canfire' for my combat system. When the player runs out of ammo, he can press "R"; It will take away one of his clips/magazines and play a reloading sound. I wan't shooting to be disabled while reloading. So I gave the R event set canfire to false. But I haven't figured out how to set it back after.


Thanks in advance,
10thGaming
B
5
Posts: 16
Reputation: 457

Post » Thu Mar 28, 2013 12:49 pm

You'll need some sort of delay before activating canfire again, right now you are setting it to true and instantly to false right after it. You could add 'Wait x seconds' event as last event and move the 'set canfire to true' event after that.
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Thu Mar 28, 2013 12:56 pm

Thank you. It's working.
B
5
Posts: 16
Reputation: 457


Return to How do I....?

Who is online

Users browsing this forum: Eisenhans, michaelverdi and 20 guests