Lighting effect follows

I have a lighting effect set up for a cave, it works like I want it to, the player moves the and the circle of "light" moves so all is well there.  It's when I go to leave the cave the next area is completely black.

Event

Lighting.png

Start in Cave 2 and go to Cave 1

Cave 2 1st.png

Enter Cave 1 and spotlight activates, leave and go back to Cave 2

Cave 1.png

Screen is dark

Cave 2 2nd.png
Map events are exactly that - map based events.

If you move to a different map, all events of the previous map stop - to get something over several maps, you either need to place a similiar map event on every map, or use a common event.
When you show a picture, it stays there until you actually erase it.


So when you change maps, the picture is still showing.


However, on cave 1, you don't have the parallel process to sync it with the player's position, so the actual light part is somewhere off the screen.


You need to issue an Erase Picture command. On any map that connects with cave 1, just add a parallel process that does an Erase Picture followed by an Erase Event.


Oh, unless, as Andar says, you want that circle of light in those caves - in that case you'd have to repeat your 'show picture' event on all those maps.
Erase picture....... well that makes sense.

Thanks.
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/lighting-effect-follows.18858/