How do you Add Music and Sound To gamE????

Started by Munky, Sun 06/07/2003 17:51:16

Previous topic - Next topic

Munky

Ok... I'm A Noob And just wondering how you  add sound... I choose interactions, blablabla... Then It asks for the variable but how do u get the variable in the first place.. Help.. THank you

scotch

just name your music and sounds

music1.mid or music2.mp3 or sound1.wav or sound54.ogg and put them in your game folder

the number part is the number you use to call the sound in ags. So id you tell it to play music 5 it's play music4.whatever

TerranRich

I really, REALLY don't like saying "Read the manual," but in this case I have to. I think it explain it well, unless of course English isn't your first language. In which case I apologize.

Let's say you have music labeled music1.mid, music2.mid, music3.mid, etc. in you're game's main directory, simply call something like "PlayMusic(2)" to play music2.mid, or if it's a text box asking for the music number, just use the number 2 for music2.mid. Easy as that. :)
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk