From b2f54c30f5ffeb85b80abf12449da477e46b2777 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Sat, 28 Nov 2015 13:35:25 +0800 Subject: [PATCH] outOfBounds kill uses isometric bounds --- src/physics/Body.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/physics/Body.js b/src/physics/Body.js index d3295d5..cdc81a7 100644 --- a/src/physics/Body.js +++ b/src/physics/Body.js @@ -511,6 +511,10 @@ Phaser.Plugin.Isometric.Body.prototype = { if (this.collideWorldBounds) { this.checkWorldBounds(); } + + if (this.sprite.outOfBoundsKill && !this.game.physics.isoArcade.bounds.intersects(this.isoBounds)){ + this.sprite.kill(); + } } this._dx = this.deltaX();