Stop chasing me if you can't see me at the end of your path
This commit is contained in:
@@ -699,6 +699,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
offset = [-32, 0];
|
offset = [-32, 0];
|
||||||
size = [96, -this.view_distance];
|
size = [96, -this.view_distance];
|
||||||
} else {
|
} else {
|
||||||
|
console.log("I don't have a facing state?");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if ( hasState(this, STATE_ALERTED) ) {
|
if ( hasState(this, STATE_ALERTED) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user