Stop chasing me if you can't see me at the end of your path
This commit is contained in:
@@ -956,7 +956,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.path_tweens.push(tween);
|
this.path_tweens.push(tween);
|
||||||
tween.to(
|
tween.to(
|
||||||
{x: (pl.end.x), y: (pl.end.y)},
|
{x: (pl.end.x), y: (pl.end.y)},
|
||||||
(TWEEN_DURATION_PERPIXEL_WALKING * pl.length),
|
(TWEEN_DURATION_PERPIXEL_RUNNING * pl.length),
|
||||||
null);
|
null);
|
||||||
tween.onStart.add(function() {
|
tween.onStart.add(function() {
|
||||||
setMovingState(this._object, this.movingstate);
|
setMovingState(this._object, this.movingstate);
|
||||||
|
|||||||
Reference in New Issue
Block a user