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] Stopping the Victory ME

Stop the Victory ME
The idea is to force the 'Victory' ME to stop when the player returns to the map.
The problem is not obvious because the default ME is quite short. But with a longer one, you have to wait until it ends before the default map BGM resumes.
I tried a lot of scripting, but to no result, and eventually gave up. If someone understand anything about the Audio module, please explain.
 
Do you know $game_system.battle_end_me is a RPG::ME, and that RPG::ME do not have 'stop' method ?
But the following works well:

class Scene_Battle < Scene_Base
alias bdr_battle_end battle_end
def battle_end(result)
bdr_battle_end( result)
Audio.me_stop if $scene.is_a?( Scene_Map)
end
end

Audio.me_fade is also an option.

I just never tried it in this method... :tongue: Thanks
 

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