TheGeekTechZone Posted November 15, 2015 Share Posted November 15, 2015 each time I try running : function render() {game.debug.body(sprite);} the game keeps crashing this is how my code looks: var sprite; var game = new Phaser.Game(1000, 650, Phaser.CANVAS, 'Test', { preload: preload, create: eurecaClientSetup, update: update, render: render }); function create () { game.physics.startSystem(Phaser.Physics.ARCADE);sprite = game.add.sprite(game.world.centerX, game.world.centerY, 'bullet');sprite.anchor.set(0.5);game.physics.arcade.enable(sprite); } function render() {game.debug.body(sprite);} what could the problem be? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.