Set time countdown then game over

Get help using Construct 2

Post » Sun Feb 17, 2013 9:01 pm

Hi guys,
I would like to set a 10 second count down, then a Game Over to pop up but the count down does not begin!
I have this:

http://s150.beta.photobucket.com/user/melonrecords/media/time.jpg.html
Link now works!

I know I am close.
Any ideas please?
Thanks
Will.will1082013-02-17 21:13:18
B
9
S
1
Posts: 40
Reputation: 1,120

Post » Sun Feb 17, 2013 9:27 pm

Try changing "every tick - subtract 1 to seconds" to "every "1" second - subtract 1 to seconds".

B
22
S
3
Posts: 451
Reputation: 2,135

Post » Sun Feb 17, 2013 9:27 pm

You're subtracting 1 from Seconds every tick. One tick is one frame not one second so your Seconds variable will = 0 after 10 frames (a fraction of a second). And you don't seem to be setting a text object to display the Seconds variable.

I wrote a tutorial on timers a while ago - it might be helpful:
https://www.scirra.com/tutorials/450/timers
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Sun Feb 17, 2013 11:04 pm

Thanks guys.
It worked.
B
9
S
1
Posts: 40
Reputation: 1,120


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, Yahoo [Bot] and 13 guests