I'm attempting to show various animations in my RPG Maker MV game. I've tried two different methods, and was wondering which is better; or if there is a third even better method I'm missing.
I have a series of pngs with transparent backgrounds that make up my animation when seen back to back. The first method I tried was to simply run a loop through an event that showed each picture one by one (with the same ID, so they replaced each other). This works fine in game, if I make sure to preload the images with a plugin first, but ends up with a large filesize for the game overall.
The second method I tried was to first convert my png images to a webm video, then use a plugin (this one: https://forums.rpgmakerweb.com/index.php?threads/play-gif-in-mv-vplayer-new-ver-1-3-mv-mz.115378/ ) to display this in game. Unfortunately, the first time any of my animations play through this they flash the screen black for a period. The loop is fine after that initial black flash. In order to fix it I've had the animation start off transparent for 15 frames and then turn opaque. This works, but means my animations are always lagging 15 frames behind the event that's meant to trigger them. It also seems my computer can only cope with running a single webm at a time this way (haven't tested on any other machines).
The webm file is much smaller than the pngs - for one 2 second animation loop, for example, the webm was 430 KB whereas the png files were 6.64 MB in total. So which is better for my end user - a larger filesize but a possibly smoother experience, or a smaller filesize but slightly suboptimal video? Or is there another way? Possibly a way to fix the black flash when the webm first loads, or something I'm missing entirely?
I have a series of pngs with transparent backgrounds that make up my animation when seen back to back. The first method I tried was to simply run a loop through an event that showed each picture one by one (with the same ID, so they replaced each other). This works fine in game, if I make sure to preload the images with a plugin first, but ends up with a large filesize for the game overall.
The second method I tried was to first convert my png images to a webm video, then use a plugin (this one: https://forums.rpgmakerweb.com/index.php?threads/play-gif-in-mv-vplayer-new-ver-1-3-mv-mz.115378/ ) to display this in game. Unfortunately, the first time any of my animations play through this they flash the screen black for a period. The loop is fine after that initial black flash. In order to fix it I've had the animation start off transparent for 15 frames and then turn opaque. This works, but means my animations are always lagging 15 frames behind the event that's meant to trigger them. It also seems my computer can only cope with running a single webm at a time this way (haven't tested on any other machines).
The webm file is much smaller than the pngs - for one 2 second animation loop, for example, the webm was 430 KB whereas the png files were 6.64 MB in total. So which is better for my end user - a larger filesize but a possibly smoother experience, or a smaller filesize but slightly suboptimal video? Or is there another way? Possibly a way to fix the black flash when the webm first loads, or something I'm missing entirely?