Best way to add video/animations to Phaser

Hello,

We have a Phaser 3 game and we need to add some complex animations (coins flipping, spinning text, and some gradient) on top of the screen and I’m thinking about just trying to play it like a video or GIF. With that kind of strategy in mind, what would be the best way to implement it in terms of performance?

Some ways I thought about:

  • Playing a GIF with transparency on top of the screen for a fixed amount of time
  • Playing an MP4 video with a color mask making the background transparent
  • Going though a sequence of PNG frames

Thanks in advance!

I thought using Tweens