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.

Constant Music Playing

Status
Not open for further replies.
I need music to play consistantly, as in the battle music and victory music all flow together in the song.

So a person travels and is hearing blah
they encounter a battle and the music continues this music unstopping
the victory music is ignored and the music keeps playing.

If you ever played FF8 it's like that seen when you invade that town early on.

Thanks :thumb:
 
Like this:
Code:
class Scene_Map
...
  #--------------------------------------------------------------------------
  # * Battle Call
  #--------------------------------------------------------------------------
  def call_battle
    # Clear battle calling flag
    $game_temp.battle_calling = false
    # Clear menu calling flag
    $game_temp.menu_calling = false
    $game_temp.menu_beep = false
    # Make encounter count
    $game_player.make_encounter_count
    # Memorize map BGM and stop BGM
    $game_temp.map_bgm = $game_system.playing_bgm
    $game_system.bgm_stop
    # Play battle start SE
    $game_system.se_play($data_system.battle_start_se)
    # Play battle BGM
    $game_system.bgm_play($game_system.battle_bgm)
    # Straighten player position
    $game_player.straighten
    # Switch to battle screen
    $scene = Scene_Battle.new
  end

Change to this:
Code:
  #--------------------------------------------------------------------------
  # * Battle Call
  #--------------------------------------------------------------------------
  def call_battle
    # Clear battle calling flag
    $game_temp.battle_calling = false
    # Clear menu calling flag
    $game_temp.menu_calling = false
    $game_temp.menu_beep = false
    # Make encounter count
    $game_player.make_encounter_count
    # Memorize map BGM and stop BGM
    if $game_system.map_bgm_in_battle == false #Current Map BGM to Battle BGM
      $game_temp.map_bgm = $game_system.playing_bgm
      $game_system.bgm_stop
    end
    # Play battle start SE
    $game_system.se_play($data_system.battle_start_se)
    if $game_system.map_bgm_in_battle == false #Current Map BGM to Battle BGM
      $game_system.bgm_play($game_system.battle_bgm)
    end    
    # Straighten player position
    $game_player.straighten
    # Switch to battle screen
    $scene = Scene_Battle.new
  end
end
And so on. Read instruction and script carefully. You have to change each codes, and if you have other battle system or battle add-on that overwrites class Scene_Battle, you have to change them.
 

Anonymous

Guest

This topic has been resolved. If Gustave or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

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