Fix move & stop player

This commit is contained in:
gparant 2020-04-13 15:41:11 +02:00
parent ab70b28bb3
commit b391ee271a
2 changed files with 12 additions and 4 deletions

View file

@ -95,7 +95,7 @@ export class Player extends PlayableCaracter implements CurrentGamerInterface, G
}
if (!haveMove) {
direction = PlayerAnimationNames.None;
this.move(0, 0)
this.stop();
}
this.sharePosition(direction);
this.CameraManager.moveCamera(this);