MichaelD Posted October 31, 2014 Share Posted October 31, 2014 Hello, I recently updated my game to Phaser 2.1.3 from phaser 2.0.7And I'm getting the following error in Chrome: Uncaught TypeError: Cannot read property 'crop' of undefined phaser.min.js:2085PIXI.Sprite._renderCanvas phaser.min.js:2085PIXI.DisplayObjectContainer._renderCanvas phaser.min.js:1761PIXI.DisplayObjectContainer._renderCanvas phaser.min.js:1761PIXI.CanvasRenderer.renderDisplayObject phaser.min.js:9178PIXI.CanvasRenderer.render phaser.min.js:9111Phaser.Game.update phaser.min.js:24547Phaser.RequestAnimationFrame.updateRAFAnd the same error as it appears on FirefoxTypeError: this.texture is undefinedDoes anyone else have this? Or is there some solution? You can view the error and the source code here: http://www.netgfx.com/trunk/games/Nightcast_213 Thanks. Update: This somehow is related to "this.startButton = this.add.button((game.width/2) - 216, 300, 'menuPlay', this.startGame, this, 1, 0, 2);". The game adds images correctly but when it comes to buttons it throws the error. Link to comment Share on other sites More sharing options...
Recommended Posts