Stop chasing me if you can't see me at the end of your path
This commit is contained in:
@@ -996,7 +996,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
} else if ( hasState(this, STATE_FACE_LEFT) ) {
|
} else if ( hasState(this, STATE_FACE_LEFT) ) {
|
||||||
setMovingState(this, STATE_FACE_UP);
|
setMovingState(this, STATE_FACE_UP);
|
||||||
} else if ( hasState(this, STATE_FACE_UP) ) {
|
} else if ( hasState(this, STATE_FACE_UP) ) {
|
||||||
setMovingState(this, STATE_FACE_RIGHT) );
|
setMovingState(this, STATE_FACE_RIGHT);
|
||||||
} else if ( haState(this, STATE_FACE_RIGHT) ) {
|
} else if ( haState(this, STATE_FACE_RIGHT) ) {
|
||||||
setMovingState(this, STATE_FACE_DOWN);
|
setMovingState(this, STATE_FACE_DOWN);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user