Timer Problem

Discussion and feedback on Construct 2

Post » Sun Apr 26, 2015 12:49 am

Sorry wasn't sure where to post this .

I have a sprite with 2 timers on it. Only one timer is working though. At first I believe I was using it wrong. I was using 2 timers on one single behavior. I added a second timer behavior to separate them but only one of them is working still.

http://i.imgur.com/zYUZz50.jpg

I used the debugger to check and make sure everything was inline and it seems so.

http://i.imgur.com/kBdCYcq.png

Anyone see any problems?
B
5
S
2
Posts: 6
Reputation: 437

Post » Sun Apr 26, 2015 1:22 am

You don't need two Timer behaviours. Just use two tags.
You are calling Start timer 60 times a second because event 48 is constantly evaluated. You should keep track of when the timer is set and not call it again until it is done/stopped.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Sun Apr 26, 2015 1:48 am

This fixed it. Thank you.
B
5
S
2
Posts: 6
Reputation: 437


Return to Construct 2 General

Who is online

Users browsing this forum: GrogIsGood, tumira and 19 guests