How to get rid of the flash that occurs when you change pictures

So I'm making a visual novel type of game, and I use pictures for the character sprites. There is an issue in the fact that every time I change my character to do something, before the next image appears there is a small flash of nothing. Is there a way to prevent this, so that my character doesn't disappear for a millisecond and then come back with a new expression? Down here is a screenshot of my game so you'll have a better understanding of what I'm trying to make
1647243973018.png
yes, but you need to be carefull

there are several preloader plugins that you can use to load an image before it is used - that flash is the loading delay until the picture is fully loaded.

Unfortunately all preloaders are memory leaks by design - if you use them without care, you'll get lag due to excessive memory use.
to prevent that the preloader should also have commands to unload a picture after it has been used, but most preloaders rely on the automated garbage collector from the browser instead.
and that is not enough if you are too excessive in preloader use.
yes, but you need to be carefull

there are several preloader plugins that you can use to load an image before it is used - that flash is the loading delay until the picture is fully loaded.

Unfortunately all preloaders are memory leaks by design - if you use them without care, you'll get lag due to excessive memory use.
to prevent that the preloader should also have commands to unload a picture after it has been used, but most preloaders rely on the automated garbage collector from the browser instead.
and that is not enough if you are too excessive in preloader use.
What preloader would you suggest that I should use, in order to get the best results? I'm quite new to coding (I mainly make music and pixel art) so all help is much appreciated ^-^
sorry, I haven't done much with MZ itself and don't know which plugin would be the best for you.
sorry, I haven't done much with MZ itself and don't know which plugin would be the best for you.
Oh I accidentally put it to "MZ". I use MV myself!

I've moved this thread to MV Support. Thank you.

Hi there!

One way to avoid this is previously show your pictures with opacity 0.
Then, when you want to change pictures, instead of Showing them, you will just change their opacity to 255.

You could also give a look at the community basic plugin(Comes by default with RPG Maker MV) and raises the cache limit to 20 or 30.
Hi there!

One way to avoid this is previously show your pictures with opacity 0.
Then, when you want to change pictures, instead of Showing them, you will just change their opacity to 255.

You could also give a look at the community basic plugin(Comes by default with RPG Maker MV) and raises the cache limit to 20 or 30.
Oh thank you this opacity trick actually fixed my problem! Thank you so much ^-^
Oh thank you this opacity trick actually fixed my problem! Thank you so much ^-^
FYI, if your problem is solved, you can report your main post and type something like "thread solved, please close" to get a mod to close it 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-rid-of-the-flash-that-occurs-when-you-change-pictures.145753/