Phaser.Physics.Arcade.Body has no `destroy` method
Lines 542-545 of src/gameobjects/Sprite.js call this.body.destroy(), but Phaser.Physics.Arcade.Body has no destroy function defined. How should we destroy Arcade bodies? I'm happy to write the PR myself with some guidance.
if (this.body)
{
this.body.destroy();
}
Simple reproduction via JSFiddle here: http://jsfiddle.net/fekhZ/1/
If you set Sprite.exists to false it will also set Sprite.visible to false and remove its body from the physics world (if it has one). If you set Sprite.exists to true it will also set Sprite.visible to true and add its body back into the physics world (if it has one).
this is in the v2 thats is under development
Please don't submit a PR as this is already fixed in the dev branch!
Thanks for the heads up, @photonstorm. =-)