Making AI able to 'see' the player
This commit is contained in:
@@ -749,6 +749,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.update_new_values = function() {
|
this.update_new_values = function() {
|
||||||
|
console.log(this);
|
||||||
if ( this.timer !== null )
|
if ( this.timer !== null )
|
||||||
this.timer.stop();
|
this.timer.stop();
|
||||||
this.animations.destroy();
|
this.animations.destroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user