Page 1 of 1

How to Skip Entire Cutscenes?

Posted: Fri May 17, 2024 1:10 pm
by dlees9191
Hi! I'm building a cutscene. This is what I want to happen:

1. First half of scene: Dialogue boxes appear normally. Player must press continue button to advance dialogue when they're done reading it. (There is TextAnimatorContinueButtonFastForward to skip text animation on my boxes).
2. New character enters off screen with a Dialogue Box "HEY!!!"
3. Player presses continue on the dialogue box.
3. Without ANY dialogue boxes present on the screen, I want a Timeline to play that has a few different camera angles, and plays some animations. This should not be able to be skipped/fastforwarded.
4. Once the timeline is complete, I want the next dialogue box to appear and have the cutscene continue as in step 1.

I'm having problems on getting #3 to work without any dialogue boxes present. And any time I press the interact button, the continue button gets pressed, dialogue continues, and timeline plays in the background.

How would you go about implementing this? Is there some easy sequence command I'm missing? Or will I have to script a solution? Thanks! Love the asset BTW!

Re: How to Skip Entire Cutscenes?

Posted: Fri May 17, 2024 2:30 pm
by Tony Li
Hi,

Create an empty dialogue entry node for #3. Set its Sequence to something like:

Code: Select all

SetDialoguePanel(false);  // Hide dialogue UI
SetContinueMode(false);  // Disable continue button
Timeline(play, YourTimeline)->Message(Done);  // Play timeline then send "Done"
required SetContinueMode(true)@Message(Done);  // Re-enable continue button
required SetDialoguePanel(true)@Message(Done);  // And show UI again
Continue()@Message(Done);  // Simulate a continue button click to move on
where YourTimeline is the name of your timeline GameObject.

You can omit the //comments. I just included them to help explain what each command is doing.

Re: How to Skip Entire Cutscenes?

Posted: Fri May 17, 2024 3:40 pm
by dlees9191
Works like a charm! Thanks!

Re: How to Skip Entire Cutscenes?

Posted: Fri May 17, 2024 4:27 pm
by Tony Li
Glad to help!