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.

Issue with a story encounter.

So I am not new to RPG Maker by any means... (I used RM2k and 2k3 before moving onto XP recently...) I have encountered an issue I've never had with any previous installment in the RPG Maker series, so here it is.

In the opening to my game, I have a fight. Everything is all fine and good until after the fight, where the victory music keeps playing... even onto the next map and scene. I can't understand why it is doing this, I've tried fading out the bgm and everything... notta. It continues to play and when it finally finishes the next BGM plays... if anyone has any idea what the problem is, it would be much appreciated if you could help out because I am completely confused.

Thanks.
 
If your beloved victory music track is longer than you want, you can always download a free program like Audacity, and use it to snip out just a few seconds of music. It's a handy trick, and also useful for making custom sound effects, because most, say, chainsaw or scream or laugh or wave clips are longer than the one or two seconds you'll want to use in a battle.
 
You can also add a line of code to the script for Scene_Battle to force the ME to stop post battle. The code that you want is:

Audio.me_stop

You need to add this to the battle end routine. On the default scripts it is located in Scene_Battle1 at around about line 150. This is the section that controls the end of the battle, the Battle_End(result) definition.

At the very end of this section, you should see a transition to a new map, $scene = Scene_Map.new. Right before this, add the Audio.me_stop command.

What this will do is force the battle end ME to finish at the moment the game transitions from the battle scene back to the maps.


If you are using a custom battle script, you will need to search for the script's version of the battle end routine - search it for the Scene_Map.new and you should not be far from what you need.
 

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