Zerbu 40 Posted January 5, 2012 Random Title Graphic Introduction This script allows you to specify multiple graphic combinations to appear as the title screen graphic. A random one from the list is shown each time the title screen is displayed. Instructions Edit the option near the top of the script to set the graphics that can appear. Script #============================================================================ # Zerbu Engine - Random Title Graphic #---------------------------------------------------------------------------- # This script allows you to specify multiple graphic combinations to appear as # the title screen graphic. A random one from the list is shown each time the # title screen is displayed. #============================================================================ #============================================================================ # (module) ZE_Random_Title_Graphic #============================================================================ module ZE_Random_Title_Graphic ZE_RTG = { #------------------------------------------------------------------------ # Options #------------------------------------------------------------------------ # This is the list of graphics combinations that can appear as the title # screen graphic. The format to use is: ["Title1", "Title2"] #------------------------------------------------------------------------ :RANDOMIZE => [ ["Crystal", "Gargoyles"], ["CrossedSwords", "Dragons"], ["Fountain", ""], ["Gates", "Heroes"], ["World", "Forest"], ["Island", "Mountains"] ] } end #============================================================================ # Scene_Title #============================================================================ class Scene_Title < Scene_Base include ZE_Random_Title_Graphic #-------------------------------------------------------------------------- # overwrite method: create_background #-------------------------------------------------------------------------- def create_background graphic = ZE_RTG[:RANDOMIZE][rand(ZE_RTG[:RANDOMIZE].size)] @sprite1 = Sprite.new @sprite1.bitmap = Cache.title1(graphic[0]) @sprite2 = Sprite.new @sprite2.bitmap = Cache.title2(graphic[1]) center_sprite(@sprite1) center_sprite(@sprite2) end end 2 Share this post Link to post Share on other sites
oriceles 3 Posted May 6, 2012 could you add an option to specify a BGM to each title screen? Share this post Link to post Share on other sites