Stop All timers request

1 favourites
  • 10 posts
From the Asset Store
Tabata timer
$9.99 USD
Template for Tabata timer, fully documented in comments and video
  • It would be useful if you could stop all timers of an instance, just like how you can stop all tweens with the tweening behavior

    Tagged:

  • My first thought was "wait, that's not a thing?" and yeah... it should be a thing!

  • Wait, I'm confused. Can't you do that with a boolean?

    If true: do X, if not true: stop doing Y.

    Am I missing something? I'm guessing I'm missing something.

  • Wait, I'm confused. Can't you do that with a boolean?

    If true: do X, if not true: stop doing Y.

    Am I missing something? I'm guessing I'm missing something.

    Yes but i was talking about the timer behavior where you have to stop each timer from an instance individually

  • Yes, it's very useful. So I have now completely used Tween(Value 0-1) instead of Timer.

  • That's actually a good workaround :D

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Wait, I'm confused. Can't you do that with a boolean?

    > If true: do X, if not true: stop doing Y.

    > Am I missing something? I'm guessing I'm missing something.

    Yes but i was talking about the timer behavior where you have to stop each timer from an instance individually

    If you mean turning all of the actions in this screenshot into one "stop all timers" action, I would definitely vote for that!

  • You should post a suggestion here:

    construct3-21h2.ideas.aha.io

    Make sure to follow the guidelines.

  • Interesting. I have never used the timer object.

    I always set a variable to the number of seconds needed and use every 1 second > subtract 1 from that variable.

    When the variable = 0 and if the play Boolean = true then true is set to false and the timer stops.

    Is the timer object easier?

  • Not only the Timer is easier, but it's much more useful and versatile. You can pause/resume it or cancel completely. You can run different timers for different object instances, or multiple timers for one object. And the time doesn't have to be in integer seconds.

    Besides, "Every X seconds" is not accurate, it may trigger the first time earlier than needed. Say, if you are using your method to schedule some event for 2 seconds, it may actually happen in just 1.1s

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)