diff --git a/front/src/Phaser/Map/InteractiveLayer.ts b/front/src/Phaser/Map/InteractiveLayer.ts index 06138dc6..d3b233d6 100644 --- a/front/src/Phaser/Map/InteractiveLayer.ts +++ b/front/src/Phaser/Map/InteractiveLayer.ts @@ -156,6 +156,8 @@ export class InteractiveLayer extends Container { if (sprite.anims.isPlaying) { sprite.anims.play(entity.animation, false, sprite.anims.currentFrame.index); + // This line needs to be changed to the following if you update to the new phaser version 3.54.0 + // sprite.anims.play({ key: entity.animation, startFrame: sprite.anims.currentFrame.index }, false); } else { sprite.anims.play(entity.animation); }