diff --git a/src/animation/AnimationManager.js b/src/animation/AnimationManager.js index e28a73e3d..09b9ff089 100644 --- a/src/animation/AnimationManager.js +++ b/src/animation/AnimationManager.js @@ -227,6 +227,7 @@ Phaser.AnimationManager.prototype = { this.currentAnim.paused = false; return this.currentAnim.play(frameRate, loop, killOnComplete); } + return this.currentAnim; } else { diff --git a/src/physics/p2/Body.js b/src/physics/p2/Body.js index 57c3ce0cb..c37ebaf69 100644 --- a/src/physics/p2/Body.js +++ b/src/physics/p2/Body.js @@ -993,8 +993,11 @@ Phaser.Physics.P2.Body.prototype = { */ removeShape: function (shape) { - return this.data.removeShape(shape); - + var result = this.data.removeShape(shape); + + this.shapeChanged(); + + return result; }, /**