Hi,
So I've started working on my first cutscene in a building. I have 3 events(which are characters) talking, moving, etc.
I have a main event in the corner controlling everything. I have self switches on all events to switch them off after the cutscene is done. The ending of the cutscene has the scene fade out and place the party outside the building. But when i go back in
the cutscene event doesn't replay but the 3 character events are still placed in the building. If i use the action button on them
they do switch off. Any idea how to make them stay off after the cutscene is turned off as well?
Thank you.
Could you post a screenshot of one of the three characters event page?
and where do you turn off the self-switch to make the event re-appear?
This is not right. If it's another event that controls everything, use a single switch on all events rather than individual self switches. Page 1 should have no commands. Page 2 should just be empty but conditioned by the global switch. In your controlling event, turn on the global switch when you want to get rid of the events.
There you go.
The problem here is that you have to interact with the objects so they set their own self switches off.
To make it work correctly, you could use normal switches.
Use a switch for the whole cutscene, switch it off when it's done and have all the characters disappear when the cutscene switch is off.
Another choice would be making a script call to change the self switches of the characters, go to Event commands/Advanced/Script and type "$gameSelfSwitches.setValue([a, b, c], 0);" (one for each event you want to switch off)
Where a is the map id (you can see it by clicking on the map on the map list), b is the event id (which you can check by opening the event editor on that event) and c could be "A", "B", etc, depending on which self switch you've chosen (don't forget the quotation marks!).
I personally prefer the first option because you have more control over the actions in the game and you can use it for other events you may include later on.
Alright. I may be slightly confused by the global switch deal. Do you mean just check Switch under Conditions on each character event? Then have the controlling event in the corner switch them all off with another switch? If so, where in the controlling event does the switch turn off go? Or do the character events need anything else added?
In the cutscene event just add to the command list a Control switches command (Event commands/Game progression/Control switches) to turn off a switch specific for the scene.
Then on the event page of all of the events you want to make disappear after the scene finishes (as well as the one controlling the whole scene), check that switch instead of the self event in the conditions column.
So where in here does the control switch to off go? Because it seems no matter which way i do it, the character events are either off from the start, or just ignore the switches and are still here when i re enter the room.
Sorry for being complicated. This first cutscene is causing so many problems for me
See where you have Control Self Switch A = ON right at the bottom? Remove that, and instead use a Control Switches (id) = ON. Then on the second page on that controlling event, as well as the second page on all your NPC events, use that switch as the condition, rather than self switches.
The general rule of thumb is, if you want to do something that affects only the event you're working on, you can use a self switch. But if you want to affect other events as well, use a regular switch. There are other ways, of course, like changing the other events' self switches from the controlling event, but that is more complicated than just using a regular switch, and is often unnecessary.
This is pretty basic, and if you are struggling with this, you'll likely struggle with a lot of other things as well. I suggest you check out some beginner tutorials as they'll walk you through this stuff.
Thank you both for your help. I figured it out.
After the fade screen command, instead of turning on the self switch of the cutscene event, turn on a global switch. You can name it after the cutscene name so it's easier to tell from the rest.
Then, select that switch, not the self switch, and put it within the conditions on the second page of every event related to the scene. Make sure the page is blank so it doesn't display any graphic or dialogue when the conditions are met.
scene switch = off:
the scene plays, the characters are shown
scene switch = on:
the scene won't play, the characters won't show