Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Best on Sat 02/08/2003 11:31:27

Title: How to import a sound an play it?
Post by: Best on Sat 02/08/2003 11:31:27
I have a prob in my game. I dunno how to play t sound in the background, I even dunno how to play a normal sound. Do I have to import it or wha?

Thanks
Title: Re:How to import a sound an play it?
Post by: Ishmael on Sat 02/08/2003 12:17:15
RTFM

Read te f***ing manual...

Multimedia commands -> PlaySound();
Title: Re:How to import a sound an play it?
Post by: Best on Sat 02/08/2003 17:47:09
An where in t f.... manual Im supposed to find it?
I know how to play t sound, but if I want to play sound (2), where can I find sound 2? Means where is it located or how to import it to game????????
Title: Re:How to import a sound an play it?
Post by: Ginny on Sat 02/08/2003 18:03:00
Just name the sound you want to play "sound2.wav" (or whatever extension you used) and put in the game directory. If it's music you want in the background name it "music2".
Then, in order to be able to hear it in the game: in the edirtor, go to Game > Rebuild Vox Files.

If you want the music to play in the background of a room, go to that room's settings and check the box that says "Play music on room load" and write the number you gave to the file there.

For sound, put the command PlaySound(2); in the script for whenever you want it to play, such as when interacting with a hotspot for example.

Hope this helps :).
Title: Re:How to import a sound an play it?
Post by: TerranRich on Sun 03/08/2003 04:34:10
This is also why we have the Beginners' FAQ. Did you even bother reading it?