Jump to content

Phaser.Timer not working


Recommended Posts

I'm using a timer but cannot get it to function. I start it but the time elapsed always stays at 0. The events never fire.

My code:

game.timer = new Phaser.Timer(game, false)game.timer.add(100, function() {  console.log("HIYAD");});game.timer.start();

What am I doing wrong? It seems to be all correct.

More Info (From probing in the console)

game.timer.paused = false

game.timer.elapsed = 0

game.timer.events.length = 0


Link to comment
Share on other sites


  • Recently Browsing   0 members

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