Simultaneous Audio Clips and Subtitles

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
n_hagialas
Posts: 36
Joined: Wed May 03, 2017 4:34 pm

Simultaneous Audio Clips and Subtitles

Post by n_hagialas »

Hi Tony,

1. Is there a way to run two audio files from the resources folder at the same time? It seems like whenever I try to run more than one, the first one gets cut out. Do you know a solution for this?

2. I was also wondering if there was a way to just display subtitles without the UI graphic elements and just text at the bottom of the screen?

Thanks,
Nik
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Simultaneous Audio Clips and Subtitles

Post by Tony Li »

Hi Nik,
n_hagialas wrote: Sat Mar 24, 2018 6:46 pm1. Is there a way to run two audio files from the resources folder at the same time? It seems like whenever I try to run more than one, the first one gets cut out. Do you know a solution for this?
Specify different Audio Sources or GameObjects as the subject. The full syntax of Audio() is Audio(clip,subject). The full syntax of AudioWait() is AudioWait(clip,subject,clips...). For example:

Code: Select all

AudioWait(buzz, Force Field);
AudioWait(warning, Intercom)
This will play "buzz" on the GameObject named "Force Field", and it will play "warning" on the GameObject named "Intercom".
n_hagialas wrote: Sat Mar 24, 2018 6:46 pm2. I was also wondering if there was a way to just display subtitles without the UI graphic elements and just text at the bottom of the screen?
Yes, use a dialogue UI that doesn't have the UI graphic elements assigned, such as the Letterbox UI. If you only want to use this for one conversation, add an Override Dialogue UI component to one of the GameObjects involved in that conversation, and assign the dialogue UI.
n_hagialas
Posts: 36
Joined: Wed May 03, 2017 4:34 pm

Re: Simultaneous Audio Clips and Subtitles

Post by n_hagialas »

Thanks Tony, I'll try these out!
Post Reply