badaf Posted August 15, 2014 Share Posted August 15, 2014 Hi all, I'm trying this :this.game.time.events.loop(Phaser.Timer.SECOND, this.loopUpdate(), this); I've got this in my Firebug's console :TypeError: this.events[this._i].callback is undefined phaser.min.js (ligne 13, col. 31400) It is the last loop() argument ? How could I fix it ? Link to comment Share on other sites More sharing options...
lewster32 Posted August 15, 2014 Share Posted August 15, 2014 Take the () off the end of loopUpdate - you should be passing a function, not calling it in-situ. badaf 1 Link to comment Share on other sites More sharing options...
badaf Posted August 15, 2014 Author Share Posted August 15, 2014 Oh thanks lewster ! lewster32 1 Link to comment Share on other sites More sharing options...
Recommended Posts