Switches Help.

Hi

I am trying to make a switching mechanism so that the "showpicture" turns off whenever I leave a certain map. And, when I re enter the map the picture would be shown once again.

I have tried making the initial switch a parallel process by putting the condition of the event to automatically turn the switch on so that the picture would show. (the top left box with the conditions are)

The issue is, when I s tart the game, the overlay picture isn't there.

Am I missing something?

Please do assist me.

Thanks.
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.

Show us a screenshot of the events you have set up to control this.  Include the WHOLE event window, not just the commands.

If you leave the map and return, does the picture show up?
no, not at all...

all I did was

Created A parallel event with the command of "showing the picture"

so that the character, when in, the map, would see the overlay picture. This enables them to walk under certain objects such as trees for example.

I also created an even to transport the character away from the map and unto another. That event in particular has the turning off switch, so that way the picture would not show on the next map.

The issue is, If I include the condition of the "showing picture" being turned on, the picture would not show.

Heck, I even tried creating a standalone parallel process event with only one switch to make sure the conditions were met for the "showing picture" event. Nothing worked, the picture doesn't show

I'd appreciate any comments of how you guys can construct this event...

Also, Sorry for going off topic

But how do you make two BGM's play at the same time?

For Instance, how to play the towns music as well the ambient noises of the wind and people speaking...

Thank you so much! Please do assist me!
If you conditioned the Show Picture page by a switch, it would not be on when the game first loads, because switches are off by default. You would need to turn the switch on right at the start of the game.


But if you have it in a parallel process event, why are you even using a switch? Just have the show picture, then erase event in the parallel process event, and in all events that take you to other maps, erase the picture. This is how we always do it.


If your map is larger than a single window though, you are going to need a script to lock the picture to the map, as pictures don't scroll as the map scrolls.


Your other question is unrelated, so please start a new thread. One thread = one issue, so it can be closed when resolved, and easy to find when others want to search for similar issues.
That's what I did

I placed one event to ensure the switch was on in the very beginning.

Until this day, I cannot follow what you mean by erasing the event on a separate event tile...

I am sorry - I am just a tad bit lost.
Yeah, still having issues with the switch....
That's what I did


I placed one event to ensure the switch was on in the very beginning.


Until this day, I cannot follow what you mean by erasing the event on a separate event tile...


I am sorry - I am just a tad bit lost.
That is why we always ask for screenshots of your events.
There are a lot of ways to handle what events can do, and an event is more than a few commands - and if you're lost that usually means you have things on events you don't understand and don't use - but are important for this case.


Only with a screenshot we can see what you don't tell us about your events - and only then we can point you to what you have to change.
Alright Ill post a detailed runthrough of my current issue.

 
24bqnur.png
mszmmw.png
As you can see from the previous post, I didnt include any switches so when I go to the other map, as expected, the image shows up.

This is what happens next. I created an event and condition for the switch to turn on. 

The first image you saw had nothing to meet the condition

30saknk.png
After making that event.

I assumed the picture would still be there when I got in,

This was the result:

148d6ap.png
You see that distinct square on the house at the bottom right?

That means the overlay image isnt being displayed... at all..

Despite me putting the condition on...

Also note, on the first image, if it has no condition, it would still display the overlay imatge (duh)

Any ideas?

How do I solve this issue...

is there bettter methods and better scripts?

Note, I tried Yami's scripts but I couldn't download them at all.

Dropbox error....

and they say Yami's scripts for overlay is pretty good...

Thanks guys!

Please help me! 
The scripts I am using involve always using switches to turn the overlay image on and not make them scroll with the player....
It seems like you have 2 events running to make your map work when you only need one.

Is there a reason you have a parallel process to turn ON the Village 1 switch?

Why not just use the parallel process to turn on your map overlay and just skip the first switch?

 -- Unless you are planning on turning it off later.

But even then, you could use the Village 1 switch to turn it off by using a Conditional Branch. If the Village 1 is on, Exit Event Processing, Else: Show Picture: [FIXED]OVER2.

You'll also want to add an Erase Event following the @>Show Picture: [FIXED]OVER2. If you don't, it'll constantly be loading your picture. Unnecessary lag.

By the way. That's a beautiful Parallax Map. Very nice.

Original thread: https://forums.rpgmakerweb.com/threads/switches-help.46366/