How do I Countdown

Get help using Construct 2

Post » Tue Aug 18, 2015 4:36 pm

Anyone knows how to do a countdown in this example? Only going forward but do not like to go back
https://dl.dropboxusercontent.com/u/905 ... topGo.capx
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Tue Aug 18, 2015 7:13 pm

:roll:
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Tue Aug 18, 2015 10:34 pm

https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Aug 19, 2015 12:30 am

@gumshoe2029

Your timer is not accurate, you have a cumulative error when you use <Ever 0.01 seconds>. You must use <Every tick> and dt *1000.


capx
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Wed Aug 19, 2015 7:55 am

Thank you both :D ;)
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Wed Aug 19, 2015 11:45 am

@phimaka There is no way to fix my capx doing countdown? in mine you could stop and had WebStorage
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Wed Aug 19, 2015 12:56 pm

Maybe like this?
Capx
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Wed Aug 19, 2015 1:05 pm

Perfect, thank you very much :D owe you one
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Wed Aug 19, 2015 1:39 pm

How to make it stop at 0? Sorry to bother you again @phimaka
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Wed Aug 19, 2015 2:47 pm

phimaka wrote:@gumshoe2029

Your timer is not accurate, you have a cumulative error when you use <Ever 0.01 seconds>. You must use <Every tick> and dt *1000.


capx


So you are saying that the Every X seconds events are not using an accurate timer? Because 0.1 seconds is 100 milliseconds which is what I was subtracting from the time (which was in milliseconds).

cesarzevil wrote:How to make it stop at 0? Sorry to bother you again @phimaka


Use a compare variables less than 0 expression, like I did in the first capx.
Last edited by gumshoe2029 on Wed Aug 19, 2015 3:03 pm, edited 2 times in total.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Next

Return to How do I....?

Who is online

Users browsing this forum: AnD4D, Google [Bot], Yahoo [Bot] and 20 guests