Jump to content

Best way of chaining timer events?


Recommended Posts

I'm trying to wrap my head around timers, and how would I do to chain sequential events. There's a number of options I could think of

  • Starting them all at the same time and have their durations to be incrementally bigger (so they're not actually chained per se, but timed in such a way that it achieves the same effect);
  • Adding each event as a callback of the previous one (maybe using something like promises to avoid callback hell);
  • Using a tween instead, which already has chaining built in with Tween.to().

Perhaps there's a simpler solution? Is there a built-in form of chaining events or I have to use one of the methods outlined above?

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...