outOfBounds kill uses isometric bounds

This commit is contained in:
2015-11-28 13:35:25 +08:00
parent d3d00c1624
commit b2f54c30f5
+4
View File
@@ -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();