KungFuFlames Posted June 6, 2018 Share Posted June 6, 2018 Is there a similar way to debug visually a sprite like THIS in Phaser 3? Link to comment Share on other sites More sharing options...
B3L7 Posted June 7, 2018 Share Posted June 7, 2018 You can debug through your physics engine. In the game config: physics: { default: 'arcade', arcade: { debug: true } } Link to comment Share on other sites More sharing options...
KungFuFlames Posted June 7, 2018 Author Share Posted June 7, 2018 I do not use physics in the game, but I found more 'native' way to do it: let render = gameScene.add.graphics(); let bounds = this.getBounds(); render.lineStyle(3, 0xffff37); render.strokeRectShape(bounds); basicly I use getBounds() method of the Sprite to get the surrounding rectangle and than you can make some graphics with it. Link to comment Share on other sites More sharing options...
BdR Posted July 18, 2018 Share Posted July 18, 2018 If I may tag along with a similar question.. In Phaser 3 is it possible do display debug text in the scene, similar to game.debug.text() in Phaser v2? Link to comment Share on other sites More sharing options...
samme Posted July 19, 2018 Share Posted July 19, 2018 I made a quick plugin for this. Link to comment Share on other sites More sharing options...
Recommended Posts