Stop chasing me if you can't see me at the end of your path

This commit is contained in:
2014-06-18 16:33:49 -07:00
parent b77f5d5af1
commit ce4f40e61e

View File

@@ -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()
}
}