During a timer

Get help using Construct 2

Post » Mon Mar 24, 2014 2:43 pm

I only saw "On Timer" condition. Is there a workaround to have a condition that continuously happens when the timer has started but not yet ended?

Basically, if I started a 5 second timer, I want to use the condition "if timer is more then 0 and less than 5"...

Please help. thanks
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Mon Mar 24, 2014 2:52 pm

Just set a variable when the timer starts, and reset the variable when it stops. Then you just need to check the variable.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Mon Mar 24, 2014 3:37 pm

this might not the best example but it might give you a start

you can check the sprite.timer.currenttime("")
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, volumetv and 17 guests