Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Adding your own music?

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Adding your own music?

Post by arcones »

You did fail Leo :P ;) But I had the same problem
Image
Want a user bar like this one? PM Leo!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Adding your own music?

Post by Leo_V117 »

oh okay. ^^
pkmuzak
Member
Member
Posts: 2
Joined: March 8th, 2010, 5:11 pm
Name: Peter

Re: Adding your own music?

Post by pkmuzak »

my question was regarding coding my own sounds into the game, not using it as a music player.
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Adding your own music?

Post 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
Locked