So I have an event that fades the screen out, turns several switches on and then fades the screen back in, however, for some reason one of these switches refuses to turn on while the screen is faded out. I can even move the switch to turn on after the screen fades back in and it will turn on like it supposed to but for some reason it just won't turn on won't turn on if the screen is faded out. Nothing else happens in the event except switches being turned on and it's only that one switches that refuses to turn on. Any ideas?
Switch wont turn on while screen is faded out?
RPG Maker MZ SupportMight wanna give this a shot so we can actually help you in any way:
forums.rpgmakerweb.com
READ!!! RPG Maker MZ Support Template
This template will give an idea of what basic support information can help others quickly answer a request. The more information you provide in the original post, the sooner it can get solved. A Topical and Meaningful Thread Title Titles such as “help me” and “it’s broken” are not...
forums.rpgmakerweb.com
I mean, I'm telling you exactly how it is: it's very simple. The event page goes:
-fadeout screen
-several switches turn on
-fadein screen
Except one of those particular switches won't actually turn on unless it's set to turn on AFTER the fadein screen
That's literally all there is to it.
-fadeout screen
-several switches turn on
-fadein screen
Except one of those particular switches won't actually turn on unless it's set to turn on AFTER the fadein screen
That's literally all there is to it.
The thing is if that was the case, it would work. Considering how this is apparently the only switch that doesn't work, you did something that made it not work. And in order to find out what that is, we need more info.
my guess is a parallel event or a plugin accessing that switch, but you havent given us much to actually go off of.
Showing screenshots of the event pages (without cropping out any details) may be of assistance here.
"its daytime" is the switch that will not turn on while the screen is faded out. eg. in screenshot 1, the switch wont turn on (all the other switches in the screenshot will turn on just fine). in screenshot 2, the switch WILL turn on. all thats changed is moving the switch to turn on after the screen has faded back in. This event is a common event that triggers when the player interacts with a bed.
Screenshot three is a parallel event thats always running. That "common events switch" is turned on at the very start of the game and never gets turned off. all attempts to get the firest event to work properly are done while the "hours" variable is set to 21.
Extra info: The "its daytime" switch is used to determine whether certain NPCS appear or not. basically they all have a single event page with the "switch: its daytime is on" condition.
Once again I must reiterate: Whether the "Control switches: it's daytime = ON" is placed before or after the fadein screen literally determines whether it actually turns on or not. After fadein = it turns on. Before fadein = it does NOT turn on.
Come on man… don’t unnecessarily crop the event screenshots. Help us help you.
Those are literally the full event pages!! they are single page common events
Okay, if you’re gonna be stubborn and refuse to follow guidelines given to you, I give up. Common events don’t run themselves. But I’m outta here, good luck.
and you are certain that it is not turning on at all, and isnt just being set back to false by the parallel event? if you put a show text command inside of the event inside a conditional branch that uses the switch, does it show in both cases?
It's natural for some to walk away in support threads for whatever reason they choose. I'd recommend following up with @Robro33 instead.
Im a little confused as to where exactly you mean to put the show text command. like in which screenshot and at exactly in which point of the event. Sorry its 4am where I am lol.
Your Parallel conditions might still be valid, so it turns off your switch every frame.
I can't see any event that sets your hours to anything else. It might happen as an autostart or common event call as soon as Condition X is met. Due to Event order, it might be processed as soon as your fade is done. At this moment, the Switch is already off.
I can't see any event that sets your hours to anything else. It might happen as an autostart or common event call as soon as Condition X is met. Due to Event order, it might be processed as soon as your fade is done. At this moment, the Switch is already off.
Yeah i just think its weird that they replied to the post where i said how the common events were triggered and they started going on about how "common events dont run themselves" lol.
It's often beneficial to ask what someone means. That said, I'd follow up with those working with you on the request. I have no contribution to the solving the thread question and do not wish to further derail it.
Have tested a little more. Switch works if the parellel event in the third screenshot is disabled. also works if there is NO fadein and the screen is just left black (i checked it was on using f9). Just gets even more strange...
in both your first and second screenshots where you turn the switch on.
the idea was that if in both cases the textbox shows, then its something after the event turning it off, but if it showed in one and not the other, then the switch never activated as you mentioned
The issue was i forgot that a parallel common event will activate within an event the instant the trigger switch is on and wouldnt wait for the event to finish first. is there a reason that your parallel common event has to be parallel? it cant be triggered on map transfers or be autorun and turn its trigger switch off once its true?
i mean, you did say the bed triggered the first common event, but you never showed the bed event that triggers it. Its possible that it could have something to do with it, but not having the info makes it harder to determine if its so
It's not strange, but shows that this Parallel might in fact be the reason, the Switch gets turned Off again.
You should check your Flow when exactly the Parallel conditions are set to false. Apparently it's too late.
Also I'd suggest to restructure it. Currently it checks every frame. I'm pretty sure that's not necessary.
I don't know your events, but it might be enough to check once every time, you set your "Hour" +1.
Or every time you change your weather or whatever affects it.
Original thread: https://forums.rpgmakerweb.com/threads/switch-wont-turn-on-while-screen-is-faded-out.173569/