How do I add new sounds to the game?
Posted: Thu Aug 25, 2016 11:55 am
I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)
To add new sounds,AveryLP wrote:I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)
So for short ambient sounds, I use Main.bb?diszxchat wrote:To add new sounds,AveryLP wrote:I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)
You need main.bb and rooms.ini to add the sounds.
For event, it's called event sound (in updateevent.bb)
For a short time, it's called temp sound (Main.bb)
For the music to play in the game the whole time, it's ambient. (Rooms.ini and main.bb)
Look into the format.AveryLP wrote:So for short ambient sounds, I use Main.bb?diszxchat wrote:To add new sounds,AveryLP wrote:I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)
You need main.bb and rooms.ini to add the sounds.
For event, it's called event sound (in updateevent.bb)
For a short time, it's called temp sound (Main.bb)
For the music to play in the game the whole time, it's ambient. (Rooms.ini and main.bb)
Also, how do I add these sounds into Main.bb?
Code: Select all
Dim Music%(any number)
Music(any number) = LoadSound_Strict("Where the sound file is located at")
Code: Select all
PlaySound_Strict LoadTempSound("Where the sound file is located at")
Code: Select all
LoadEventSound(e,"Where the sound file is located at")
Thanks for the advice.diszxchat wrote:Main.bb/UpdateEvent.bb
You want to add more sounds so just put this:
Ambient:TempSound (Plays for a short while):Code: Select all
Dim Music%(any number) Music(any number) = LoadSound_Strict("Where the sound file is located at")
EventSound:Code: Select all
PlaySound_Strict LoadTempSound("Where the sound file is located at")
There's ton of sound format so I don't want to go through this.Code: Select all
LoadEventSound(e,"Where the sound file is located at")