Stop before running into followed Avatar; stop sprite animation

This commit is contained in:
PizZaKatZe 2021-11-30 11:48:59 +01:00
parent 372dda792f
commit e7f1395809
3 changed files with 4 additions and 4 deletions

View file

@ -117,7 +117,7 @@ export class Player extends Character {
const distance = Math.pow(xDist, 2) + Math.pow(yDist, 2);
if (distance < 650) {
if (distance < 2000) {
this.stop();
} else {
const moveAmount = 9 * 20;