How do I Make a game end after the timer has reached zero?

Just started using Construct 2? Post your questions here

Post » Tue Jun 30, 2015 3:57 pm

i am working on a little game where there is a scoreText system and a clock countdown timerText from 60 seconds to zero..my problem is that after the timer reaches zero , it continues counting down into minus numbers....how do i stop the timer from doing this ? thanks.
B
10
S
2
G
1
Posts: 23
Reputation: 693

Post » Tue Jun 30, 2015 7:03 pm

You could add another condition in the event with the countdown to say timerText > 0, then the timer will only count down when the timerText is greater than 0 and won't go into the negative numbers.
Then create an event that says timerText = 0 | (change layout to Game Over screen, or whatever).
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests