Help - Search - Members - Calendar
Full Version: Change BGM feature
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
Shake0615
I remember in previous RPG Makers, if I changed the Battle BGM to match the same music that was played on the field, then when the battle loaded the music would not change. However, in VX this does not seem to happen. Even if the Battle BGM is the same as the field BGM, the song restarts when the battle begins.

Is there any way to change this through scrips? I really want to be able to keep the music flowing continuously between the field map and the battles. Thanks.
leongon
I can't script anything yet, but I can guess...

Search for your Scene_Map script, then find this section:

CODE
  #--------------------------------------------------------------------------
  # * Switch to Battle Screen
  #--------------------------------------------------------------------------
  def call_battle
    @spriteset.update
    Graphics.update
    $game_player.make_encounter_count
    $game_player.straighten
    $game_temp.map_bgm = RPG::BGM.last
    $game_temp.map_bgs = RPG::BGS.last
    RPG::BGM.stop
    RPG::BGS.stop
    Sound.play_battle_start
    $game_system.battle_bgm.play
    $game_temp.next_scene = nil
    $scene = Scene_Battle.new
  end


add a # at the start of the line RPG::BGM.stop
Shake0615
QUOTE (leongon @ Apr 19 2010, 05:43 AM) *
I can't script anything yet, but I can guess...

Search for your Scene_Map script, then find this section:

CODE
  #--------------------------------------------------------------------------
  # * Switch to Battle Screen
  #--------------------------------------------------------------------------
  def call_battle
    @spriteset.update
    Graphics.update
    $game_player.make_encounter_count
    $game_player.straighten
    $game_temp.map_bgm = RPG::BGM.last
    $game_temp.map_bgs = RPG::BGS.last
    RPG::BGM.stop
    RPG::BGS.stop
    Sound.play_battle_start
    $game_system.battle_bgm.play
    $game_temp.next_scene = nil
    $scene = Scene_Battle.new
  end


add a # at the start of the line RPG::BGM.stop


That's close. It makes the transition between map and battle keep the same music, but once the battle result screen pops up, it starts the music over. Any way to change that?

**EDIT**
Nevermind, I found in under the Victory Processing section in the Scene_Battle. Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.