How do I make shot cooldown

Get help using Construct 2

Post » Fri Oct 24, 2014 12:27 pm

Right now I have it so when I click the space bar my character fires a bullet. If you can click the space bar 10 times in one second it will fire ten times. What I am looking for is a simple mechanism that makes it impossible to fire a bullet within 2 seconds of another one. In other words I am looking for a way to disable bullets for 2 seconds within firing one.

Thanks
B
8
S
3
G
2
Posts: 52
Reputation: 1,762

Post » Fri Oct 24, 2014 1:04 pm

You can use something simple like this. You can also change the global variable for an instance variable.
You do not have the required permissions to view the files attached to this post.
B
75
S
29
G
17
Posts: 256
Reputation: 15,250

Post » Fri Oct 24, 2014 1:08 pm

..just set Bullets to 1..
You do not have the required permissions to view the files attached to this post.
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Fri Oct 24, 2014 9:39 pm

There's a Cooldown behaviour plugin too.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: FabianB, totoe and 16 guests