I have a picture that loads with every step the character takes (the game is a dungeon crawler done mostly with eventing). This picture is the "room" the player is in.
Everything works well except that the first time the player enters a "room" and the picture displays, there is a brief quarter-second of black as the old picture ("room") unloads and the new one is displayed.
However, when the character revisits the same room (i.e. a picture is loaded that was previously loaded), there is no pause and the picture displays immediately without the black transition.
Presumably this is due to loading the picture the first time (subsequent times it is still in memory?). If so, is there a way to avoid this?
I first tried calling a common event that loads *all* the pictures in succession before the game starts, but that doesn't seem to prevent the black "flash" between pics during normal gameplay. I also tried a "preloader" plugin called "YSP_Preloader" but it didn't seem to make any difference either. The only other preloader plugin I found was by SRD but requires a bunch of other plugins I don't really want to install just for this issue. I also found one by Galv, but that requires manually entering every single picture I'd want to preload by hand (I can't find a way to tell it to load a whole folder).
If anyone can give me any advice (either on why this happens if I'm wrong, or how to fix it), I'd really appreciate it!
It's not the end of the world if it can't be fixed, but really makes the game look less professional.
Side note: is there a way to add transitions (dissolve, etc.) between two pictures that replace each other?
EDIT: I tried Galv's (text editor for the win to copy all filenames!) and it *sort of* works; the black between images is much shorter but still there the first time an image loads. Revisiting the room has no black between images at all, so it's still a loading/memory problem it seems.
Everything works well except that the first time the player enters a "room" and the picture displays, there is a brief quarter-second of black as the old picture ("room") unloads and the new one is displayed.
However, when the character revisits the same room (i.e. a picture is loaded that was previously loaded), there is no pause and the picture displays immediately without the black transition.
Presumably this is due to loading the picture the first time (subsequent times it is still in memory?). If so, is there a way to avoid this?
I first tried calling a common event that loads *all* the pictures in succession before the game starts, but that doesn't seem to prevent the black "flash" between pics during normal gameplay. I also tried a "preloader" plugin called "YSP_Preloader" but it didn't seem to make any difference either. The only other preloader plugin I found was by SRD but requires a bunch of other plugins I don't really want to install just for this issue. I also found one by Galv, but that requires manually entering every single picture I'd want to preload by hand (I can't find a way to tell it to load a whole folder).
If anyone can give me any advice (either on why this happens if I'm wrong, or how to fix it), I'd really appreciate it!
It's not the end of the world if it can't be fixed, but really makes the game look less professional.
Side note: is there a way to add transitions (dissolve, etc.) between two pictures that replace each other?
EDIT: I tried Galv's (text editor for the win to copy all filenames!) and it *sort of* works; the black between images is much shorter but still there the first time an image loads. Revisiting the room has no black between images at all, so it's still a loading/memory problem it seems.