Close #52 : AI was detecting correctly, some sprites were just drawn facing the wrong way at initialization time
This commit is contained in:
@@ -336,25 +336,6 @@
|
||||
"x":160,
|
||||
"y":832
|
||||
},
|
||||
{
|
||||
"gid":3544,
|
||||
"height":0,
|
||||
"name":"BigTopGuard",
|
||||
"properties":
|
||||
{
|
||||
"sprite_can_see_lightmeter":"0.15",
|
||||
"sprite_canmove":"false",
|
||||
"sprite_facing":"down",
|
||||
"sprite_group":"townsfolk-guard",
|
||||
"sprite_has_treasure":"true",
|
||||
"sprite_name":"townsfolk-guard-2"
|
||||
},
|
||||
"type":"AI",
|
||||
"visible":true,
|
||||
"width":0,
|
||||
"x":672,
|
||||
"y":384
|
||||
},
|
||||
{
|
||||
"gid":3544,
|
||||
"height":0,
|
||||
|
||||
@@ -841,7 +841,8 @@ var AISprite = function(game, x, y, key, frame) {
|
||||
addAnimation(this, 'bipedrunup');
|
||||
addAnimation(this, 'bipedrundown');
|
||||
setMovingState(this, faceStateFromString(this.sprite_facing));
|
||||
setSpriteMovement(this);
|
||||
this.animations.play(getMovingAnimationName(this));
|
||||
this.animations.stop();
|
||||
this.ready_to_update = true;
|
||||
this.runGlintEffect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user