There is an animated sprite with
animationupdate event handler:
sprite.on('animationupdate', (anim, frame) => onAnimationUpdateHandler(sprite, anim, frame));
How I can change current frame on started animation inside that event handler?
I found a setCurrentFrame method in Phaser Docs (Phaser 3 API Documentation - Class: Animation), but I do not understand how to use it.