Play subtitles and audio at the same time

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
linyangyang2015
Posts: 11
Joined: Fri Sep 07, 2018 10:24 pm

Play subtitles and audio at the same time

Post by linyangyang2015 »

quest3.png
quest3.png (38.68 KiB) Viewed 480 times
I want to Play subtitles and audio at the same time,But Sequence(Audio(FirstAudio/1)) interrupt the subtitles,How to solve it?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Play subtitles and audio at the same time

Post by Tony Li »

Hi,

Change "Audio" to "AudioWait". Or, even better:

Code: Select all

AudioWait(FirstAudio/1);
Delay({{end}})
The first line will play the audio, staying on the node until it's done playing.

The second line will also stay on the node for a duration based on the text length.

The node will stay for the longest of both of those lines.
linyangyang2015
Posts: 11
Joined: Fri Sep 07, 2018 10:24 pm

Re: Play subtitles and audio at the same time

Post by linyangyang2015 »

OK,thanks.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Play subtitles and audio at the same time

Post by Tony Li »

You're welcome!
Post Reply