Jump to content

correct way to use timer


Recommended Posts

Should i use the default "game.time.events" for every event or one instance of Phaser.Timer class for each?

When i try the first solution, i encouter some strange behaviors with the timer. To be more specific, every 10 second i spawn a wave of enemies, this work fine, but when i loop an event for all enemies to fire every 2 secs then the enemies wave sometime spawn sooner than expected.

Any suggestion?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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