phaserjs/phaser-ce

timer loop events in create function get error

Closed this issue · 0 comments

code in Game.js create function()
this.game.time.events.loop(900,console.log('test'), this); this.game.time.events.stop(false); this.game.time.events.start();

error message:
Uncaught TypeError: Cannot read property 'apply' of undefined