How do I time point in future (countdown alarm)

Get help using Construct 2

Post » Thu Mar 12, 2015 1:02 pm

Hi,
I wanted to ask forum - is this "the right way" of creating some time point in future ?
So I take "time" expression, add desired number of secs and check against current time every tick
Image


I know it has some flaws:
1) not checked whether input was digits or not
2) alarm appears even before time has started (why ?)

Thanks!
You do not have the required permissions to view the files attached to this post.
Last edited by LabSimulator on Thu Mar 12, 2015 4:13 pm, edited 1 time in total.
B
10
S
3
Posts: 25
Reputation: 709

Post » Thu Mar 12, 2015 2:27 pm

Yes a future time can be set by: time + X seconds

It also should be time >= futureTime.

You can also just attach a Timer behavior to the Sprite:
https://www.scirra.com/manual/167/timer
B
31
S
7
G
8
Posts: 232
Reputation: 6,194


Return to How do I....?

Who is online

Users browsing this forum: qianyuqianxun and 0 guests