- Joined
- Oct 26, 2015
- Messages
- 54
- Reaction score
- 10
- First Language
- English
- Primarily Uses
Hey guys, I am very new to RPG Maker and I was just wondering if it was possible to have menu music that plays on the menu and keeps on playing during the Items/Skills/Status/etc. menus but then returns to the BGM theme once you completely exit out of the menu? If that makes sense >.<
Here's a script I found by a guy on the internet named Soulpour777, which is almost what I want, but the music doesn't play throughout the items screen and what not, and when I did modify it to play on all screens, the menu music kept resetting :/ (for example, the song would be playing on the menu screen, then when you select Status, the song would reset)
But yeah, here's the script:
Any help would be greatly appreciated!!
Here's a script I found by a guy on the internet named Soulpour777, which is almost what I want, but the music doesn't play throughout the items screen and what not, and when I did modify it to play on all screens, the menu music kept resetting :/ (for example, the song would be playing on the menu screen, then when you select Status, the song would reset)
But yeah, here's the script:
#==============================================================================
# Menu BGM EX
# Soulpour777
# Web URL: www.infinitytears.wordpress.con
# This script is a request by lionheartvll
# lionheartvll http://www.rpgmakervxace.net/topic/24712-menu-song/
#------------------------------------------------------------------------------
# Description:
# This script allows the developer to play a different BGM when the Menu is
# opened.
#==============================================================================
module Soulpour
module Menu_BGM
PLAY_NEW_BGM = true #play different music on menu?
def self.play_menubgm
RPG::BGM.new("music", 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:
LAY_NEW_BGM
Soulpour::Menu_BGM.play_menubgm
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
dispose_background
return if !Soulpour::Menu_BGM:
LAY_NEW_BGM
$game_map.autoplay
end
end
# Menu BGM EX
# Soulpour777
# Web URL: www.infinitytears.wordpress.con
# This script is a request by lionheartvll
# lionheartvll http://www.rpgmakervxace.net/topic/24712-menu-song/
#------------------------------------------------------------------------------
# Description:
# This script allows the developer to play a different BGM when the Menu is
# opened.
#==============================================================================
module Soulpour
module Menu_BGM
PLAY_NEW_BGM = true #play different music on menu?
def self.play_menubgm
RPG::BGM.new("music", 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:
Soulpour::Menu_BGM.play_menubgm
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
dispose_background
return if !Soulpour::Menu_BGM:
$game_map.autoplay
end
end

