transitions between images files without a blink

Hi guys

I am trying to change image A and B using show picture but there was a blink between images (I believe this is because the system takes time to load image 😎

I have been trying opacity 255 -> 0 -> 255 but it did not work

Is there a way to manipulate $gameScreen.showPicture(XX) variable or any fading command/variables ?

Can anyone shed some light on this issue ?

Thanks
Preload the picture sprite by showing it at 0 opacity at first.

Picture B (0opacity) -> Picture A -> Picture B (255 opacity)

I think this should work.
Are you trying to write this into a plugin or are you just trying to get this to work with events?

I've moved this thread to Learning Javascript. Thank you.


You simply need to preload the image before switching images.
Edit: You can use this ImageManager.loadPicture(filename) assuming the image is in the picture folders. Just call this a couple of frames before switching images and you should be fine.
use galv image cache ro preload the images.

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/transitions-between-images-files-without-a-blink.119856/