Closes #35 : Missed one .collide() reference
This commit is contained in:
@@ -349,7 +349,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
aiSprites.forEach(function(spr) {
|
aiSprites.forEach(function(spr) {
|
||||||
if ( hasBeenReset == true )
|
if ( hasBeenReset == true )
|
||||||
return;
|
return;
|
||||||
if ( game.physics.arcade.collide(spr, this) ) {
|
if ( game.physics.arcade.overlap(spr, this) ) {
|
||||||
var last = this.path[this.path.length() - 1];
|
var last = this.path[this.path.length() - 1];
|
||||||
this.path_tween_stop();
|
this.path_tween_stop();
|
||||||
hasBeenReset = true;
|
hasBeenReset = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user