Playing Sounds when saying a phrase!? [SOLVED]

Started by , Fri 28/01/2005 00:21:07

Previous topic - Next topic

JoSeTe20

 ;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  ::)

strazer

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.

JoSeTe20

Oh man Ã, :o ! thank u very much ! ! Ã, ;D

strazer

#3
You're welcome. :)

I highly recommend reading the AGS Beginners FAQ too, very useful.

Edit: Updated link

SMF spam blocked by CleanTalk