Stop chasing me if you can't see me at the end of your path
This commit is contained in:
@@ -1029,7 +1029,7 @@ var AISprite = function(game, x, y, key, frame) {
|
||||
if ( this.rotation_timer == null ) {
|
||||
console.log("I can't see the player - turning so I can");
|
||||
this.rotation_timer = game.time.create(false);
|
||||
timerev = this.rotation_timer.add(500, this.turnFaceRight, this);
|
||||
timerev = this.rotation_timer.add(250, this.turnFaceRight, this);
|
||||
this.rotation_timer.start()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user