added comment for new phaser version compatibility
This commit is contained in:
parent
243d4d6565
commit
a0f1f0c04b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user