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
69
S
22
G
14
Posts: 1,488
Reputation: 16,594

Post » Thu Jul 05, 2012 4:22 am

Awesome, thanks.
B
101
S
32
G
12
Posts: 1,549
Reputation: 22,033

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests