How to add ambient sounds to level
This tutorial will help you to understand ambient system and how it works
All levels has ambient sounds, because without them game will be silent.
Ambient manager placed at assets/gameplay/ambient_manager.json
The JSON structure of ambient object is:
{
"level_id":[
"intro",
"manikovsky",
"forest_road"
],
"ambient": "amb_day1.mp3",
"ambient_volume": -30.0,
"ambient_bg_volume": 0,
"random_sfx_delay": [3.75, 6.0],
"random_sfx": [
"ambient_sfx/rnd_bird_1.mp3",
"ambient_sfx/rnd_bird_2.mp3",
"ambient_sfx/rnd_bird_3.mp3",
"ambient_sfx/rnd_bird_4.mp3",
"ambient_sfx/rnd_bird_5.mp3",
"ambient_sfx/rnd_bird_6.mp3",
"ambient_sfx/rnd_crow_1.mp3",
"ambient_sfx/rnd_crow_2.mp3",
"ambient_sfx/rnd_crow_3.mp3"
],
"background_ambients": [
"amb_day1_bg.mp3",
"ambient_sfx/dist_wind_1.mp3"
],
"background_ambients_volumes":[
0,
-10.0
]
}
So you need to find best volume friendship between these layers to fit all sounds.
Make sure, that "level_id" list contains level id only for one ambient structure, because if two or more structures contains same level id, game will choose first structure and ignore others!
Last updated