added comment for new phaser version compatibility

This commit is contained in:
Johannes Berthel 2021-04-09 21:05:57 +02:00 committed by Thomas Basler
parent 243d4d6565
commit a0f1f0c04b

View File

@ -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);
}