bkirvin Posted September 27, 2016 Share Posted September 27, 2016 I've noticed that "this.player.anchor.setTo(0.5);" will create a bounding box centered on the player.body in Phaser v2.2.2 when "this.game.debug.body(this.player);" is used, but in the latest Phaser v2.6.2, "this.game.debug.body(this.player);" shows a bounding box anchored at top left even if "this.player.anchor.setTo(0.5);" is previously applied. Was this an intentional change or a bug in the new version? Link to comment Share on other sites More sharing options...
rgk Posted September 28, 2016 Share Posted September 28, 2016 Intentional change, when setting the bounding box set the offset like this sprite.body.setSize(100, 100, -50); Link to comment Share on other sites More sharing options...
Recommended Posts