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.

Battle BGMs?

Is there a way to make it so that when you enter battles the current BGM that is already playing keeps on going? Like in MotW?

Basically, say I was in a dungeon. Rather then hearing a battle theme every time I get into a battle and then going back to the beginning of the dungeon theme, I want for the dungeon theme to just continuously loop and go through battles. So battle's don't really have their own themes they just take off from the one playing.
So what I want to do is say for a boss, rather then using (Change Battle BGM : OMGMEGAHARDBOSSWHOCANKICKYOURASS)  I could use, (Play BGM: OMGMEGAHARDBOSSWHOCANKICKYOURASSWITHASCRIPT) and that bgm would play through the battle until after the battle where in the event I dictate stop bgm.
 

Atoa

Member

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 delet the line
Code:
    $game_system.bgm_stop
in call_battle
or the music will restart when the battle begins.
 
I tried that, but what happens is the BGM for the battle starts from the beginning so it doesn't loop and sounds weird. The  when you win/escape and return back to the map, the map's bgm starts over from the beginning as well. I just want a continuous loop that play's through the battle and when the battle is finished, the loop is still in the same position going. Get it?

Edit: Oh woops,  new reply. Hold on Atoa lemme check it real quick. That above paragraph was referring to bubba.
Edit 2: Alright it works, thanks Atoa.
 

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