transitions between images files without a blink

Status
Not open for further replies.

Charles2020

Veteran
Veteran
Joined
Feb 24, 2020
Messages
36
Reaction score
1
First Language
English
Primarily Uses
RMMV
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 B)

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
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
713
Reaction score
564
First Language
French
Primarily Uses
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.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,891
Reaction score
8,243
First Language
English
Primarily Uses
RMMV
Are you trying to write this into a plugin or are you just trying to get this to work with events?
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,419
Reaction score
4,480
First Language
English
Primarily Uses
RMMV

I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. 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.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,891
Reaction score
8,243
First Language
English
Primarily Uses
RMMV

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Does anyone find this hard to read?

Enjoying my weekend at home to stay Covid free. How is everyone else doing?
If you enjoy speed mapping for RPG Maker MV check out my YouTube Channel. My latest video includes custom made tiles which makes a simple map look dynamic!

Check out my short game Hikari's World! : Chapter I, on itch.io/games.
An actual dwarf with an actual axe is not so fascinating as the fantasy counterpart...

Forum statistics

Threads
100,603
Messages
977,705
Members
132,211
Latest member
Rkyfat
Top