Stop chasing me if you can't see me at the end of your path
This commit is contained in:
@@ -993,7 +993,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( this.path_set(player, this.blocked(true)) == true )
|
if ( this.path_set(player, this.blocked(true)) == true )
|
||||||
if ( this.canSeeSprite(player, false) == true ) {
|
if ( this.canSeeSprite(player, false) == false ) {
|
||||||
this.path_tween_stop();
|
this.path_tween_stop();
|
||||||
} else {
|
} else {
|
||||||
this.path_tween_start();
|
this.path_tween_start();
|
||||||
|
|||||||
Reference in New Issue
Block a user