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
63
S
22
G
14
Posts: 1,482
Reputation: 16,432

Post » Thu Jul 05, 2012 4:22 am

Awesome, thanks.
B
100
S
31
G
11
Posts: 1,552
Reputation: 21,497

Previous

Return to How do I....?

Who is online

Users browsing this forum: DJKeefy, Momio, NgTrent, oddreal and 11 guests