Compare Variables in Actions?

Get help using Construct 2

Post » Wed Jul 04, 2012 8:47 am

Usually to handle fire rate stuff I do things like that:
[code]global number firerate = 0.4. // in seconds
global number firetimer = 0
+every ticks
-> set firetimer to max(0,firetimer-dt)
+on space pressed
+firetimer = 0
-> set firetimer to firerate
-> create bullet[/code]Yann2012-07-04 08:49:43
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Jul 05, 2012 4:22 am

Awesome, thanks.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Previous

Return to How do I....?

Who is online

Users browsing this forum: GUN, Yahoo [Bot] and 15 guests