Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ClearlyBrogan on Wed 07/06/2023 19:50:14

Title: Need audio line to play at same time as player.say
Post by: ClearlyBrogan on Wed 07/06/2023 19:50:14
Hey, I have my character who will speak when reacting to thing (player.say)
I'm trying to add voice to those lines but I'm not sure how to have them be simultaneous. It'll only play it after I've clicked past the text.

It's probably super simple but I'm really new and learning!

Title: Re: Need audio line to play at same time as player.say
Post by: Nahuel on Wed 07/06/2023 19:56:12
If the sound should be at the same time, have you thought about mixing the audio clips into 1, both sounds will be played together 🤔
Title: Re: Need audio line to play at same time as player.say
Post by: ClearlyBrogan on Wed 07/06/2023 19:57:10
Nevermind! Figured it out!
Title: Re: Need audio line to play at same time as player.say
Post by: Crimson Wizard on Wed 07/06/2023 20:13:22
It was probably because Play command was after Say, and because Say is blocking, the sound played only after.
So the solution was to move Play before Say, as Play is not blocking.

But if that's true, that's not how you normally add voices to character speech. Instead there's a voice system:
https://adventuregamestudio.github.io/ags-manual/VoiceSpeech.html
Title: Re: Need audio line to play at same time as player.say
Post by: ClearlyBrogan on Wed 07/06/2023 20:52:36
aye I just added the speech to the folder and did player.Say("&1 speech");

so simple but I'm a newbie so didn't think haha