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
61
S
22
G
14
Posts: 1,480
Reputation: 16,373

Post » Thu Jul 05, 2012 4:22 am

Awesome, thanks.
B
96
S
29
G
11
Posts: 1,545
Reputation: 21,063

Previous

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], makkancs and 5 guests