maxmax Posted August 30, 2015 Share Posted August 30, 2015 Hi, The new Phaser 2.4.3 create a bug in my game, when I change the state (" game.state.start('mystate');") I have this error : Uncaught TypeError: Cannot read property 'destroy' of null :b.TilingSprite.destroy @ phaser.js:24092c.TileSprite.destroy @ phaser.js:59789c.Group.removeAll @ phaser.js:34721c.Group.destroy @ phaser.js:34805c.Group.removeAll @ phaser.js:34721c.Group.destroy @ phaser.js:34805c.World.shutdown @ phaser.js:35102c.StateManager.clearCurrentState @ phaser.js:30685c.StateManager.preUpdate @ phaser.js:30609c.Game.updateLogic @ phaser.js:39002c.Game.update @ phaser.js:38950c.RequestAnimationFrame.updateRAF @ phaser.js:61958window.requestAnimationFrame.forceSetTimeOut._onLoop @ phaser.js:61942Thanks Bengalaa 1 Link to comment Share on other sites More sharing options...
in mono Posted September 1, 2015 Share Posted September 1, 2015 How do you know it's a Phaser bug?What do you have in that state? Link to comment Share on other sites More sharing options...
maxmax Posted September 11, 2015 Author Share Posted September 11, 2015 It's a phaser bug because when I use phaser 2.4.2 the game work perfectly. The state doesn't start, I think it's tweens animations for my first state that will not stop. Bengalaa 1 Link to comment Share on other sites More sharing options...
breno Posted September 15, 2015 Share Posted September 15, 2015 It also happens to me. To be more precise it happens when I call this.game.state.start('game', true, false, this.data);And I have a TileSprite that has visibility set to false. Interestingly, if I toggle its visibility during the current state, the error is not thrown. Bengalaa 1 Link to comment Share on other sites More sharing options...
Recommended Posts