I'm making a game where the rooms in a building have a black box over them until the player enters the room. The way I did that was with Galv's Layer Graphics plugin. Each room has a layer that is just a black box that is the size of the room (but of course the layer itself is the same size as the map). When you enter the room, the event you step on has a plugin command to turn the layer off and refresh. When you leave the room, the event you step on has a plugin command to create a new layer and refresh. Unfortunately, something very weird happens when the new layer is "created." For some reason, it has a very large layer that it shrinks down to the right size. This only happens for a split second and actually looks like the layer is jumping in place, but I was able to record video and then freeze frame and take a photo and it's... a very large black square. Weird! Anyone know why it might be doing this or how to fix it?
MZ Galv's Layer Graphics Plugin New Layer/Refresh Problem
Javascript/Plugin SupportSomeone else might have a better answer...but my suspicion is that if you're loading a large image to cover an entire map, it might be taking a split second to actually load that image, and the black square is its template.
You might need to take a look at one of the handful of preloading/caching plugins.
You might need to take a look at one of the handful of preloading/caching plugins.
To improve things a bit, use the Static layer instead of a layer the size of the map. You'd have to position it in code, but smaller images load faster.
Also, instead of deleting and re-creating layers, you can use the settings to change their opacity to 0 and back to 255 as needed.
Also, instead of deleting and re-creating layers, you can use the settings to change their opacity to 0 and back to 255 as needed.
Wow didn't think to change the opacity but that sounds like the way to go! (I've tried positioning layers, but it is really fiddly so I stopped doing it. Will have to keep that in mind tho if I run into more problems.)
Original thread: https://forums.rpgmakerweb.com/threads/galvs-layer-graphics-plugin-new-layer-refresh-problem.151787/