RPG Maker Forums

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:

#==============================================================================
# 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::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
Any help would be greatly appreciated!!

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top