Need audio line to play at same time as player.say

Started by ClearlyBrogan, Wed 07/06/2023 19:50:14

« previous - next »

ClearlyBrogan

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!


Nahuel

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 🤔
Life isn't a game. Let's develop a life-like-game.


Crimson Wizard

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

ClearlyBrogan

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

SMF spam blocked by CleanTalk