From a0f1f0c04b4315f088a8ae7959d1fdc368a5d537 Mon Sep 17 00:00:00 2001 From: Johannes Berthel Date: Fri, 9 Apr 2021 21:05:57 +0200 Subject: [PATCH] added comment for new phaser version compatibility --- front/src/Phaser/Map/InteractiveLayer.ts | 2 ++ 1 file changed, 2 insertions(+) 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); }