Martiny Posted December 9, 2013 Share Posted December 9, 2013 I keep getting this error in my console. Here's what I did with my code: var game = new Phaser.Game(1200, 500, Phaser.CANVAS, 'game', { preload: preload, create: create, update: update, render: render});I don't know what I'm doing wrong. What I want to do with render is to see the body of my sprite using this code from the starstruck example: function render () {game.debug.renderSpriteBody(player);}But I just don't know how to do it! Thanks in advance! Link to comment Share on other sites More sharing options...
rich Posted December 9, 2013 Share Posted December 9, 2013 There's nothing wrong with the 2 lines of code posted, so the error must be elsewhere. Suggest you upload either the full thing somewhere or post the code here. Link to comment Share on other sites More sharing options...
Martiny Posted December 9, 2013 Author Share Posted December 9, 2013 Turns out it was a simple mistake of mine. Thanks for the attention though. Now I have a question about the sprite body, but I guess it's for another topic. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts