How to import a sound an play it?

Started by Best, Sat 02/08/2003 11:31:27

Previous topic - Next topic

Best

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
Valame tes lan-utas desi gronto?

Ishmael

RTFM

Read te f***ing manual...

Multimedia commands -> PlaySound();
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Best

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????????
Valame tes lan-utas desi gronto?

Ginny

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 :).
Try Not to Breathe - coming sooner or later!

We may have years, we may have hours, but sooner or later, we push up flowers. - Membrillo, Grim Fandango coroner

TerranRich

This is also why we have the Beginners' FAQ. Did you even bother reading it?
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk