How to Skip Entire Cutscenes?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dlees9191
Posts: 7
Joined: Mon Apr 22, 2024 6:05 pm

How to Skip Entire Cutscenes?

Post 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!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to Skip Entire Cutscenes?

Post 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.
dlees9191
Posts: 7
Joined: Mon Apr 22, 2024 6:05 pm

Re: How to Skip Entire Cutscenes?

Post by dlees9191 »

Works like a charm! Thanks!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to Skip Entire Cutscenes?

Post by Tony Li »

Glad to help!
Post Reply