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.

[RESOLVED] [VX] Battle End Glitch

I'm having a problem with a Battle Victory theme I imported, after the battle is finished the track plays fine but it continues even onto the map and doesn't end until the track's time limit has finished (in this case 40-ish seconds). At first I thought it only did it with storyline (forced) battles, but the same problem happens with random encounters as well.
 

poccil

Sponsor

That's because the victory music was playing as ME (music effects), and music effects prevent any BGM (background music) that would play as well until the ME finishes.  To fix this, add "RPG::ME.stop" to the "process_victory" method of Scene_Battle, like this:
  def process_victory
    @info_viewport.visible = false
    @message_window.visible = true
    RPG::BGM.stop
    $game_system.battle_end_me.play
    unless $BTEST
      $game_temp.map_bgm.play
      $game_temp.map_bgs.play
    end
    display_exp_and_gold
    display_drop_items
    display_level_up
    battle_end(0)
    RPG::ME.stop
  end
 

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