Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 28/01/2005 00:21:07

Title: Playing Sounds when saying a phrase!? [SOLVED]
Post by: on Fri 28/01/2005 00:21:07
 ;D Hi all ! How can i make to play a sound when the main character say a prashe ? i tried to put PlaySound(x) ; in the script topic editr, but it 'doesn't work ! I want to play aplauses when the main character says something . Thanks in advance  ::)
Title: Re: Playing Sounds when saying a prashe ! ?
Post by: strazer on Fri 28/01/2005 00:38:44
I think "phrase" is the word you're looking for. ;)

Do you mean you want to play a sound from within a dialog, from the dialog script?
Then use the "play-sound" command.
See the manual for more commands you can use (Tutorial -> Setting up the game -> Conversations).
Name the sound file soundX.wav/mp3/ogg/whatever where X is the number of the sound (without padding zeroes) and put it in the game folder. It will be compiled into the game exe when you save your game.
Title: Re: Playing Sounds when saying a prashe ! ?
Post by: on Fri 28/01/2005 00:49:23
Oh man Ã, :o ! thank u very much ! ! Ã, ;D
Title: Re: Playing Sounds when saying a prashe ! ?
Post by: strazer on Fri 28/01/2005 00:57:16
You're welcome. :)

I highly recommend reading the AGS Beginners FAQ (http://americangirlscouts.org/agswiki/Category:AGS_Beginners%27_FAQ) too, very useful.

Edit: Updated link