Jump to content
Sign in to follow this  
lionheartvll

Menu song?

Recommended Posts

Is there any way to change the BGM for when you enter the menu? I'm using the Ace_Menu_Engine if that matter at all (https://github.com/Archeia/YEARepo/blob/master/Menu/Ace_Menu_Engine.rb).

 

It would be ideal if I could get it to fade out the BGM while the menu was up, have another song play, then when the menu goes back down the BGM that was playing before the menu was opened fades back in without losing it's place instead of starting over. If it can only be done by starting over that's fine too. Thanks!

Share this post


Link to post
Share on other sites


module Soulpour

module Menu_BGM

PLAY_NEW_BGM = true #play different music on menu?

def self.play_menubgm

RPG::BGM.new("Theme1", 100, 100).play #BGM Name, Volume, Pitch

end

end

 

end

 

class Scene_Menu < Scene_MenuBase

alias :menu_bgm_play_start :start

#--------------------------------------------------------------------------

# * Start Processing

#--------------------------------------------------------------------------

def start

menu_bgm_play_start

return if !Soulpour::Menu_BGM::PLAY_NEW_BGM

Soulpour::Menu_BGM.play_menubgm

end

#--------------------------------------------------------------------------

# * Termination Processing

#--------------------------------------------------------------------------

def terminate

super

dispose_background

return if !Soulpour::Menu_BGM::PLAY_NEW_BGM

$game_map.autoplay

end

end

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×