How do I make it so that the countdown restarts

Get help using Construct 2

Post » Tue Jan 16, 2018 8:14 pm

How do I make it so that the countdown restarts when if they die because once they do 25 seconds they goto the next level but when they die the timer still goes on
how do i fix this?

Timer - 25
B
2
Posts: 1
Reputation: 152

Post » Tue Jan 16, 2018 9:24 pm

Without seeing the capx, I'm not sure how you're doing the countdown timer. But here are the elements of a countdown timer.

- Start/Stop boolean. This tells whether the countdown timer is counting down.
- Countdown max time. What is the countdown's maximum time. In your case, it's probably 25 seconds.
- Countdown current time. When the countdown timer is at 'Start', current time is subtracted by delta time per tick.
- Finish condition. Every tick, check if current time is <= 0. If True, then put the countdown timer to 'Stop'. Then reset countdown timer's current time = max time. This is the reset. You also put any other action you need on Finish.
B
57
S
20
G
1
Posts: 124
Reputation: 4,428


Return to How do I....?

Who is online

Users browsing this forum: Curler, Skolas3654 and 1 guest