I recently moved my game from VX Ace to MV and I'm still getting used to it. Back then I used this custom script I made to change the map background and I want to know if I can adapt it to MV.
class Scene_MenuBase < Scene_Base
#--------------------------------------------------------------------------
alias background_picture_create_background create_background
def create_background
background_picture_create_background
@background_picture_sprite = Sprite.new
if $game_switches[261]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground')
elsif $game_switches[262]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground2')
elsif $game_switches[263]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground3')
elsif $game_switches[264]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground4')
elsif $game_switches[265]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground5')
end
end
#--------------------------------------------------------------------------
alias background_picture_dispose_background dispose_background
def dispose_background
@background_picture_sprite.dispose
end
end
class Scene_MenuBase < Scene_Base
#--------------------------------------------------------------------------
alias background_picture_create_background create_background
def create_background
background_picture_create_background
@background_picture_sprite = Sprite.new
if $game_switches[261]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground')
elsif $game_switches[262]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground2')
elsif $game_switches[263]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground3')
elsif $game_switches[264]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground4')
elsif $game_switches[265]
@background_picture_sprite.bitmap = Cache.picture('MenuBackground5')
end
end
#--------------------------------------------------------------------------
alias background_picture_dispose_background dispose_background
def dispose_background
@background_picture_sprite.dispose
end
end