I have a cutscene in my game which is created purely through eventing (no videos or pictures, just in-game assets). That event has been set to auto-run, and when it completes, it moves the player to a new area. That all works fine. But it's a pain in the ass watching the whole cutscene every time I playtest a change (which is VERY frequent; I am really zealous about making sure each individual event plays out the way I want it to before moving on to the next), and it also occurred to me that players might want a way to skip it too, if they had played my game before. So I created an event set as a parallel process, with a conditional branch stating that if the cancel button was pressed, it should run the same commands as the end of the cutscene, basically fade the music and the screen and teleport the player to where they would have gone after the cutscene ended. I left the "else" branch empty.
Doesn't work. Doesn't even fake it. So can someone with more experience tell me where I went wrong, or a more efficient way to do this? Thanks for any help in advance! 😀
That will not work, as you would have to press the button at the very start of the cutscene, and if you didn't do it in time, you would still have to watch the entire cutscene. And it's very unlikely that you'll time it just right, even if you do remember that it's there.
For just yourself, you can do a conditional branch with $gameTemp.isPlaytest() in the script (to see if you're doing a play test), then ask if you want to skip the cutscene or not. Use Show Choices, and if Yes is chosen, do a Jump To Label to the end of the cutscene where to start to set up all your switches, gear, party members, etc that the cutscene needs to do, then transfer the player.
If you want it for players as well, you'll either need some global switches plugin or a NewGame+ plugin, and at the end of the cutscene turn on one of these switches. Then at the start of the cutscene, instead of $gameTemp.isPlaytest() as the condition, use this global switch or whatever. So they will have to watch it through once, without getting a choice. Once they've done that, each time they replay, that'll be asked if they want to skip it or not.
If you want something that will detect a keypress at any time in the cutscene, it'll require something different.
Could you run the cutscene as a parallel process? You’d need to stop player movement and if the player is a part of the cutscene then I’d make the player invisible and use another event with the player sprite to represent them, but it might work? If you haven’t done so, I’d insert a ‘wait 5’ or something into the loop to reduce the amount of processing happening. Hope that all makes sense.
if you want to interrupt a cutscene, the check for interrupting the scene needs to be inside the controlling event of the scene, it cannot be outside because the engine does not allow external control to an active event.
I would simply add a conditional branch checking for a rarely used button inside the cutscene, every few commands as needed. and if the button is pressed, exit event processing as a command (possibly with some other commands for the results of the cutscene).
just make that sequence of commands once, then select the conditional branch to copy it multiple times.
Thank you all for so much wonderful food for thought! I am not sure of what my final solution will be, but for the sake of simplicity, for now, I decided to just open with a choice to play/skip the cutscene. It's not necessarily elegant, and I am still striving for something that is a little less immersion-breaking on it's own, but at least this solution works and allows me to save hours during the development process.