What I have been doing to change my pictures when a new map shows up is I make an event for every map. This event is parallel process and doesn't have a 2nd page or a selfswitch. I show image 1, 2, and 3. If I want to show only one image, then I select none for 2 and 3. This means that when I go to a new map it simply replaces the pictures with a new picture or to no picture if I select none.
Do you think this will cause lag or problems later on, because it seems like at the end of the game I will have all of these events running at the same time. Say if I have 100 maps then on the 100th map I will have 100 of these events running since I haven't ended them. The problem I'm having is that if I erase the event when I leave the map then if I go back to the map then it won't show the right pictures.
I hope this makes sense. How do you change between overlays when you transfer maps?
you didn't give enough info to decide that, for example you didn't say whether it is a common event or a map event.
And the big question is - why didn't you shut off the parallel process if it's only a static picture?
A parallel process loops automatically 60 times per second - if it's just to display a static picture, then you don't need that picture displayed sixty times per second, you only need to display it once.
If you use that picture as an map overlay, then you're better off using one of the overlay/parallax scripts...
That said, only the map events from the active map are running, the map events from another map don't even exist at that moment. So you'll only have lag problems with that if your events are common events...
1. They're map events, not common events.
2. If by shut off parallel process you mean end the event with a self-switch and add a 2nd page. If I do this then when I leave the map and come back, the event is off and doesn't use the proper pictures.
I am going to use Yami's overlay mapping script to automatically add overlays to my maps. This way I don't have to worry about it.
Thank you Andar.
2. He means use Erase Event.
A parallel process event loops continuously for as long as you're on that map. You only need to show a picture ONCE and it stays until you remove it or show a different picture with the same number. You do NOT need it to loop continuously.
There are two ways to turn off a parallel process event:
1 - use multiple event pages with switches or self switches to stop it running EVER AGAIN. This is good for cutscenes (which are better as autorun events, as they do the same thing as parallel process events but take control away from the player while they're running) and things you only want to happen once throughout the game.
2 - use Erase Event to stop it running until you leave the map and return. It gets "erased" from the current map so it stops looping. But when you leave the map and come back, it's loaded again and it runs again, once, and then is erased again.
Erase Event is a temporary removal of an event.
Using event pages and conditions is a permanent removal (or change to do something differently).
If you're going to use Yami's script, make sure you set up the switches and variables the script uses, otherwise it won't behave properly and you'll be back asking why certain layers won't display 😉
Thanks! The first thing I did when I read the script was label the switches and variables.
Thanks again for the help!
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.