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.

How do I Add sounds and Ambience

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.
Locked
User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

How do I Add sounds and Ambience

Post by William »

I'm trying to make a horror game so you can imagine how important backround sounds and ambience are. Unfortunately, although I've found many free sounds to disturb a player lol, I have no idea how to actually add them into the game. I found the folder with all the backround sounds and I assume I need to just add them there (please confirm or deny that theory) and then I need to write it into the scripts, but I'm not sure where those scripts are.

Please Help, thank you.
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D
User avatar
daniel_san
Moderator
Moderator
Posts: 84
Joined: September 8th, 2009, 11:03 pm
Name: Dan
IRC Username: daniel_san

Re: How do I Add sounds and Ambience

Post by daniel_san »

You add sounds to your maps through your maps art.cfg. Look in packages base for examples. You may also want to check out Mikes Halloween house he posted in the forums around halloween.
Within his art.cfg you should see a good example of using sounds and ambience in your own maps.

Heres a link to his forum post.

viewtopic.php?f=23&t=465&p=2228&hilit=h ... ouse#p2228
User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: How do I Add sounds and Ambience

Post by William »

Alright, so I did figure that out (thank you so much, your helping me seriously achieve somthing I've dreamed of for so long lol) and my other question is, how do I make a sound only play once and not repetetively, would I need a particle that is activated? And if so, how would I go about doing that?
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D
User avatar
daniel_san
Moderator
Moderator
Posts: 84
Joined: September 8th, 2009, 11:03 pm
Name: Dan
IRC Username: daniel_san

Re: How do I Add sounds and Ambience

Post by daniel_san »

I believe what you're looking for is the trigger type. I believe trigger type is 9. Its the 3rd variable in the map model.
A quick way of changing it would be by holding 3 with your mouse cursor over the model, and scrolling till its at 9.
Or you can edit it manually by pressing period . and editing the 3rd variable.

take care.
-daniel_san
User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: How do I Add sounds and Ambience

Post by William »

I do believe I understand that, but what I'm trying to do is ... well I have a humming sound. It's on an automatic look by being a sound in general. Say I wanted to make the humming only go through one playthrough. Could I do that with the actual sound particle or would I have to do somthing else to trigger it to play once?
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D
User avatar
daniel_san
Moderator
Moderator
Posts: 84
Joined: September 8th, 2009, 11:03 pm
Name: Dan
IRC Username: daniel_san

Re: How do I Add sounds and Ambience

Post by daniel_san »

Use the sound ent for ambient sounds. However use an empty map models for specific sounds like that. For example the empty model found in the bathroom doorway.

From mike's halloween_house config:

scream = (registersound halloweenhousesounds/58804__Syna_Max__shocker_preview 255)
level_trigger_1 = [sound $scream; sleep 50000]

notice this empty map model is set to -1, its trigger type is 11, and its level_trigger is 1. This triggers the sound every time you walk over/near it.
If you just change the trigger type to 9 the sound defined under level_trigger 1 will only play once.
Hope this helped.

-daniel_san
User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: How do I Add sounds and Ambience

Post by William »

Alright, I did get it to actually get the level trigger, but now the problem is that it is not playing rhe right sounds. It's playing the "jump" sound. Now what I did is I put my scream in the map sounds so bascially

mapsound "scream"

Which is fine. If I wanted to play it as a repetetive sound, that would work and I could do that. However, (the sound is in the q009 folder ... dont' know if that could be a problem) the sound trigger says "level_trigger_3" = [sound q009/scream]

and I've tried it without the q009 in there as well. So basically I know that the sound is being registered as I can place it as a constant repetetive noise, but I don't know how to get it registered to only happen once on the null map model that I have placed. Re-stating again though, that it is indeed playing the "jump" noise.
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D
Locked