phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 492 forks source link

timer loop events in create function get error #699

Closed The-five-stooges closed 3 years ago

The-five-stooges commented 3 years ago

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