How do I make it so that the countdown restarts

  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)