Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Continuous BGM

Consider the following situation:

Event before battle > Battle > Event after battle

Is there a possible way to make it so that the BGM initiated during "event before battle" to continue into "battle", and proceed even after the battle ends?

I tried setting the battle BGM to "None", but that doesnt seem to work. The BGM simply stops.

I also tried setting the battle BGM to be the same as the initiated BGM, but the music simply starts over as soon as the battle commences.

I'm hoping that there is a way to do this without having to rely on scripts.
 
Actually, I don't think that you can do this without scripting. You don't need a custom script or anything, but you do need to be able to make minor mods with them. Here is a quote from another thread in RGSS support located here.

atoa":e5m1e2ut said:
There's two ways:

In Scene_Map look for the method "def call_battle"
and delete these lines:


Code:
$game_system.bgm_stop

and


   
Code:
$game_system.bgm_play($game_system.battle_bgm)


Whit this method you wont be able to set different musics (E.G: boss battles), but it's easier to manage.

Or you can simply delete only the line:

   
Code:
$game_system.bgm_stop

and leave the

   
Code:
$game_system.bgm_play($game_system.battle_bgm)


with this method, you must set the battle music to a music equal the map music in *all maps* via events. But you can set different battle musics always you want.

@Ranashii
You must at last delete the line

   
Code:
$game_system.bgm_stop

in call_battle
or the music will restart when the battle begins.

Basically, to make it continuous, you have to follow the first step. That would be easiest. Just go into the script editor into Scene_Map and hit ctrl-f and search for those lines of code (copy, paste from here).

Hope this helps!

~xgamexfreakx
 
I asked the same question awhile back (the link in gamefreak's post). Just do what it says to do first, don't do the "or..." since it won't work right because the original music playing won't stop and a new theme would be playing at the same time. 
 
Sorry, I meant the map music will stop playing. Make a new map, give it a random encounter and an auto-playing BGM. Then walk around and get into a battle. The battle music will be different and once you get out of the battle the original map BGM won't play.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top