Introduction This Script is a remake of my Xp "Kingdom Hearts Title Screen".
Features Changes your project's title screen to become visually similar to "Kingdom Hearts II" Plug 'n' Play Easily Customized
Script Changes: Shortened All images now go in the "Pictures" folder
Script
Script
CODE
##============================================================================== # MOG VX - Scene Title Screen Miria V2.0 #============================================================================== # Title By Moghunter # http://www.atelier-rgss.com/ # Splash screen By Vlue L. Maynara # Editted By Shadic66 #============================================================================== # Tela de Titulo animado #============================================================================== # 1 - Crie uma pasta chamada de PICTURES (Graphics/Pictures) # 2 - Dentro desta pasta devem conter as seguintes imagens # # Title #Imagem que contem o texto do titulo # Transition #Imagem da transição de tela # Plane1 #Imagem da camada 1 # Plane2 #Imagem da camada 2 # Plane3 #Imagem da camada 3 # Title_Command #Imagem do menu seleção NEW GAME # Logo #Imagem da tela inicial # #============================================================================== # Histórico # v2.0 - Melhor codificação. #============================================================================== module MOG_VX01 # Tempo de transição. TT = 240 #Ativar movimento de Onda no texto do titulo. # (true = Ativar ou false = Desativar) TWAVE = true #Opacidade da imagem camada 1. TPLANE1_OPA = 255 # Velocidade de movimento da camada 1 na horizontal. TPLANE1_X = 0 # Velocidade de movimento da camada 1 na vertical. TPLANE1_Y = 0 # Posição do comando COMMAND_POS = [0, 220] #Fadein (frames) PRETITLE_TRANSITION = 10 #How long to display (frames) PRETITLE_WAIT = 120 #Volume of Music (%) PRETITLE_VOLUME = 100 #Pitch of Music (50-150) PRETITLE_PITCH = 100 #File to load, nil if none (Filename must be in quotes, ex. "Gameover") PRETITLE_FILE = "Logo" end
#=============================================================================== # ■ Cache #=============================================================================== module Cache def self.title(filename) load_bitmap("Graphics/Pictures/", filename) end end
#-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- def start super load_database create_game_objects check_continue create_splash_screen create_title_graphic create_command_window create_command_sprite play_title_music end
#-------------------------------------------------------------------------- # ● create_splash_screen #-------------------------------------------------------------------------- def create_splash_screen if PRETITLE_FILE != nil $data_system.title_bgm.play @sprite1 = Sprite.new @sprite1.bitmap = Cache.title(PRETITLE_FILE) Graphics.transition(PRETITLE_TRANSITION) Graphics.wait(PRETITLE_WAIT) @sprite1.bitmap.dispose @sprite1.dispose end end
#-------------------------------------------------------------------------- # ● post_start #-------------------------------------------------------------------------- def post_start super open_command_window end
#-------------------------------------------------------------------------- # ● create_title_graphic #-------------------------------------------------------------------------- def create_title_graphic @sprite = Plane.new @sprite.bitmap = Cache.title("Plane1") @sprite.opacity = TPLANE1_OPA @sprite.z = 1 if TWAVE == true end end
#-------------------------------------------------------------------------- # ● pre_terminate #-------------------------------------------------------------------------- def pre_terminate super close_command_window end
#-------------------------------------------------------------------------- # ● update #-------------------------------------------------------------------------- def update super @command_window.update update_sprite_command @com.opacity += 2 @sprite.ox += TPLANE1_X @sprite.oy += TPLANE1_Y if Input.trigger?(Input::C) case @command_window.index when 0 command_new_game when 1 command_continue when 2 command_shutdown end end end
#-------------------------------------------------------------------------- # ● dispose_command_window #-------------------------------------------------------------------------- def dispose_command_window @command_window.dispose end
#-------------------------------------------------------------------------- # ● open_command_window #-------------------------------------------------------------------------- def open_command_window @command_window.open begin @command_window.update Graphics.update end until @command_window.openness == 255 end
#-------------------------------------------------------------------------- # ● close_command_window #-------------------------------------------------------------------------- def close_command_window @command_window.close begin @command_window.update Graphics.update end until @command_window.openness == 0 end
#-------------------------------------------------------------------------- # ● play_title_music #-------------------------------------------------------------------------- def play_title_music RPG::BGS.stop RPG::ME.stop end
#-------------------------------------------------------------------------- # ● confirm_player_location #-------------------------------------------------------------------------- def confirm_player_location if $data_system.start_map_id == 0 print "プレイヤーの初期位置が設定されていません。" exit end end
Group: Member
Posts: 34
Type: None
RM Skill: Beginner
Sorry about that the script from moghunter didn't put a logo in his miria script, unlike sophia. If you want i could try to import it to the vx script.