Page 2 of 2

Re: Adding your own music?

Posted: March 9th, 2010, 2:15 pm
by arcones
You did fail Leo :P ;) But I had the same problem

Re: Adding your own music?

Posted: March 9th, 2010, 6:41 pm
by Leo_V117
oh okay. ^^

Re: Adding your own music?

Posted: March 10th, 2010, 3:20 pm
by pkmuzak
my question was regarding coding my own sounds into the game, not using it as a music player.

Re: Adding your own music?

Posted: March 11th, 2010, 7:19 am
by Leo_V117
So i was right. Fail Arcones and others, heh. Here, lets take your music/sound example as a creak and background music.

Firstly the Background Music:

save your map and in the menu after you press "esc" select "Editing Gui" then in the tabs select the ".cfg" tab. Type something random like "Alpha" or "Help", this doesnt do anything, it just allows you to save it and open it in the "PlatinumArtsSandbox2.5/mystuff/packages/base/[your map name]" or, if you already have the config file, go straight to that and open it.

Create a folder in music called "mapmusic"
then create a folder in sounds called "mapsounds"
add your music (in mp3 format or ogg) to "mapmusic" and add your sounds (in ogg format) to "mapsounds"

Now, at the top of the file type this:

Code: Select all

mapsoundreset

music mapmusic/alpha


Then the map sounds

Code: Select all

mapsound "mapmusic/alpha" 200 32767 // 0
mapsound "mapsounds/one" 200 32767 // 1
mapsound "mapsounds/two" 255 32767 // 2
mapsound "mapsounds/three" 175 32767 // 3
mapsound "mapsounds/four" 255 32767 // 4
mapsound "mapsounds/five" 255 32767 // 5
mapsound "mapsounds/six" 255 32767 // 7
mapsound "mapsounds/eight" 255 32767 // 8
mapsound "mapsounds/ten" 255 32767 // 9