Black background on Lights when loading map

Issue is when I load a map with light sprites, it first loads the Light sprite with the black background before it becomes transparent.

It always loads the black background every time I re-enter the same map.
Set the freaquency of they moveroute to highest and make them non-pepeating
it depends what light plugin you use, if you use Khas light plugin,
than it is a common issue on the render part.

terrax lightning might have the same, there are 3 others that doesn't
have that issue so far I know off, but if you images instead of a plugin,
you might cache the images first so it would render them 🙂
Set the freaquency of they moveroute to highest and make them non-pepeating
I already made sure to use the settings provided in the folder, even

Lighting Effect Example Usage.png


But it's still showing the black background and after 1 second it's transparent.
it depends what light plugin you use, if you use Khas light plugin,
than it is a common issue on the render part.

terrax lightning might have the same, there are 3 others that doesn't
have that issue so far I know off, but if you images instead of a plugin,
you might cache the images first so it would render them 🙂
I'm not using any light plugin, only the light sprite provided in the POP! Horror City Tileset.

EDIT:

Will caching fix it? Because even if the sprite has already been loaded, if I exit the map and re-enter it, it reloads the black background again.
pre-caching sometimes helps, as in MV it render it nicely, but in VX,
I dont know, or how the caching work.

the first time, it load late or not at all, caching it load the images.
and most of the times it can help, to try this out, try the following.

make a start of the event to pre-cache the images:

show image 1 (1st light)
wait 1 frame
show image 1 (2nd light)
wait 1
show image 1 (3rd light)
continue for the lights you have

erase image 1 (this load the light images for 1 frames repeatly)

than when you go into the map, it should work, otherwise, you need a small
wait BEFORE showing those images, if the loading takes less than a second,
wait 40 frames to 60 than than the light images.

this is not garanteed it could help, but if it improves something, play around.
pre-caching sometimes helps, as in MV it render it nicely, but in VX,
I dont know, or how the caching work.

the first time, it load late or not at all, caching it load the images.
and most of the times it can help, to try this out, try the following.

make a start of the event to pre-cache the images:

show image 1 (1st light)
wait 1 frame
show image 1 (2nd light)
wait 1
show image 1 (3rd light)
continue for the lights you have

erase image 1 (this load the light images for 1 frames repeatly)

than when you go into the map, it should work, otherwise, you need a small
wait BEFORE showing those images, if the loading takes less than a second,
wait 40 frames to 60 than than the light images.

this is not garanteed it could help, but if it improves something, play around.
Tried using Galv's Image Cache plugin, thinking it might work, but it didn't.

I might just use your method by showing it first while the screen is blacked out.
It's 60 frames exactly when it removes the black background.

It's a bit of a hassle using workarounds like this just to use those lights.
I already made sure to use the settings provided in the folder, even

View attachment 216721

But it's still showing the black background and after 1 second it's transparent.
No no no... 😛 Not in the moveroute, then it is already too late.

You need to do this in the event itself. You can choose "Fixed" "Approach" "random" etc. Under that, you can put the frequency:

1645261781890.png


What this is, is it sets the time it waits between each command. (Even when the event doresn't move) And the way you have set up your move route, it has to wait before it speeds up.

You also need to disable the repeat action check. It only has to run once. Running this over and over, will probably result in lag. Specially if you have more than one event. This part you do indeed in the moveroute itself.
No no no... 😛 Not in the moveroute, then it is already too late.

You need to do this in the event itself. You can choose "Fixed" "Approach" "random" etc. Under that, you can put the frequency:

View attachment 216759

What this is, is it sets the time it waits between each command. (Even when the event doresn't move) And the way you have set up your move route, it has to wait before it speeds up.

You also need to disable the repeat action check. It only has to run once. Running this over and over, will probably result in lag. Specially if you have more than one event. This part you do indeed in the moveroute itself.
Thanks that fixed the issue!

Don't know why the provided instruction was using the custom route, it confused me.

Again, thanks for the help!
No problem. Glad to help. Make something pretty with it!
i had the same problem and i fixed it myself i forgot what caused it but this is how i did to fix it.
Ảnh chụp màn hình 2022-08-20 162456.png

Original thread: https://forums.rpgmakerweb.com/threads/black-background-on-lights-when-loading-map.145060/