kriket Posted September 22, 2015 Share Posted September 22, 2015 How to debug an emitter/particle effect? I want to see that bounding box that you can see with sprites and physics bodies. Is this possible? Link to comment Share on other sites More sharing options...
NateTheGreatt Posted September 22, 2015 Share Posted September 22, 2015 Phaser.Utils.Debug.body() and Phaser.Utils.Debug.spriteBounds() should do the trick. Do something like this in an update function:// update()emitter.forEachAlive(function(particle) { game.debug.body(particle,'red',false); game.debug.spriteBounds(particle, 'pink', false);}); Link to comment Share on other sites More sharing options...
samme Posted July 10, 2017 Share Posted July 10, 2017 samme/phaser-debug-emitter Link to comment Share on other sites More sharing options...
Recommended Posts