Bunny Scene Title (convert from rgss2 to rgss3)

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
Hi guys,


I use this script to bypass the title screen...


This script from the ability to insert the picture on the map for the selection of game options (new game etc) ..


Are any of you able to convert in rgss3?


Thank you ^^

Code:
#===============================================================================
#===============================================================================
#===============================================================================
#======================== Bunny Scene Title ====================================
#===============================================================================
#========================== by: Master I =======================================
#===============================================================================
#===============================================================================
#===============================================================================

                          ###############
                          #Configurações#
                          ###############
              
module Pernalonga
#===============================================================================
#Configurações gerais
#-------------------------------------------------------------------------------
# Aqui você defini o mapa para apresentação da sua scene.
#-------------------------------------------------------------------------------
Title_Map = 3   #ID do mapa onde ocorrerá a apresentação
#-------------------------------------------------------------------------------
# Digite a ID do evento onde o mapa se centralizará.
#-------------------------------------------------------------------------------
Title_Event = 1 # ID do evento onde centralizará a tela no começo

#===============================================================================
#Configurações dos Comandos
#-------------------------------------------------------------------------------
#Você escolhe se os comandos: Novo Jogo, Carregar Jogo e sair vão ser atraves de
#pictures, se sim digite true se não digite false.
#-------------------------------------------------------------------------------
Title_Comando_picture = true       #Usar comando por pictures
#-------------------------------------------------------------------------------
#Aqui você defini como será a ordem dos comandos e também das teclas, se você 
#deixar false os comandos vão aparecer na horizontal e as teclas para mover o
#cursor serão ◄ e ►, mas se digitar true os comandos serão na vertical e as 
#teclas de comando serão ▲ e ▼.
#-------------------------------------------------------------------------------
Title_Comando_vertical = false   #Usar comando vertical

#===============================================================================
#Configurações dos Comandos com Picture
#-------------------------------------------------------------------------------
#Digite o nome da imagem para o comando novo jogo.
#-------------------------------------------------------------------------------
Title_new_game = "New_Game"  #Imagem do comando novo jogo
#-------------------------------------------------------------------------------
#Digite o nome da imagem quando o cursor estiver selecionado no comando novo jogo.
#-------------------------------------------------------------------------------
Title_new_game_sl = "New_Game_sl" #Imagem do comando quando selecionado
#-------------------------------------------------------------------------------
#Digite as posições X e Y da imagem Novo jogo e Novo jogo quando selecionado.
#-------------------------------------------------------------------------------
Title_new_game_x = 330   #Posição X da imagem
Title_new_game_y = 265  #Posição Y da imagem
#-------------------------------------------------------------------------------
#Digite o nome da imagem para o comando carregar jogo.
#-------------------------------------------------------------------------------
Title_continue = "Load_Game"
#-------------------------------------------------------------------------------
#Digite o nome da imagem quando o cursor estiver selecionado no comando carregar jogo
#-------------------------------------------------------------------------------
Title_continue_sl = "Load_Game_sl"
#-------------------------------------------------------------------------------
#Digite as posições X e Y da imagem Carregar jogo e carregar jogo quando selecionado.
#-------------------------------------------------------------------------------
Title_continue_x = 350
Title_continue_y = 300
#-------------------------------------------------------------------------------
#Digite o nome da imagem para o comando sair
#-------------------------------------------------------------------------------
Title_sair = "Exit_Game"
#-------------------------------------------------------------------------------
#Digite o nome da imagem quando o cursor estiver selecionado no comando sair
#-------------------------------------------------------------------------------
Title_sair_sl = "Exit_Game_sl"
#-------------------------------------------------------------------------------
#Digite as posições X e Y da imagem sair e sair quando selecionado.
#-------------------------------------------------------------------------------
Title_sair_x = 380
Title_sair_y = 330

#===============================================================================
#Configurações dos Comandos sem Picture
#-------------------------------------------------------------------------------
#Se na linha 33 você digitou false, aqui você pode configurar os comandos normais
#da scene Title.
#-------------------------------------------------------------------------------
#Digite as posições X e Y dos comandos.
#-------------------------------------------------------------------------------
Title_Comando_x = 300   #Posição X da janela de comandos.
Title_Comando_y = 288   #Posição Y da janela de comandos.
#-------------------------------------------------------------------------------
#Define aqui a opacidade da janela de comandos.
#-------------------------------------------------------------------------------
Title_opacidade = 0

#===============================================================================
#Configurações dos Efeitos de Transição.
#-------------------------------------------------------------------------------
#Se você quiser que os efeitos de transição sejam aleatorios deixe true, se não
#deixe false. (Então o efeito só irá usar a 1° imagem)
#-------------------------------------------------------------------------------
Title_transition_random = false
#-------------------------------------------------------------------------------
#Digite o tempo de duração da transição.
#-------------------------------------------------------------------------------
Title_transition_time = 120
#-------------------------------------------------------------------------------
#Define aqui os nomes das imagens da transição.
#-------------------------------------------------------------------------------
Title_transition_nome = []
Title_transition_nome[0] = "Lines"      #Nome da imagem de transição de ID N° 1
Title_transition_nome[1] = "RandomNess" #Nome da imagem de transição de ID N° 2
Title_transition_nome[2] = "Rays"       #Nome da imagem de transição de ID N° 3
Title_transition_nome[3] = "Ripple"     #Nome da imagem de transição de ID N° 4
#===============================================================================
                       #######################
                       #Fim das Configurações#
                       #######################
$pernalonga_scene_title = true
end


class Scene_Title < Scene_Base

  alias pernalonga_scene_title_start start
  def start
    pernalonga_scene_title_start
    @transição = rand(4)
    $game_map.setup(Pernalonga::Title_Map) 
    evento = $game_map.events[Pernalonga::Title_Event]
    x = evento.x
    y = evento.y
    $game_player.center(x, y)
    $game_map.setup_events
    $game_map.refresh
    @mapa = Spriteset_Map.new
    comandos_pictures
end

  
  def comandos_pictures
    @New_Game = Sprite.new
    @New_Game_sl = Sprite.new
    @Load_Game = Sprite.new
    @Load_Game_sl = Sprite.new
    @Exit_Game = Sprite.new
    @Exit_Game_sl = Sprite.new
    @New_Game.bitmap = Cache.system(Pernalonga::Title_new_game) 
    @New_Game_sl.bitmap = Cache.system(Pernalonga::Title_new_game_sl)
    @Load_Game.bitmap = Cache.system(Pernalonga::Title_continue)
    @Load_Game_sl.bitmap = Cache.system(Pernalonga::Title_continue_sl)
    @Exit_Game.bitmap = Cache.system(Pernalonga::Title_sair)
    @Exit_Game_sl.bitmap = Cache.system(Pernalonga::Title_sair_sl)
    case @command_window.index
      when 0
        @New_Game.visible = false
        @New_Game_sl.visible = true
        @Load_Game.visible = true
        @Load_Game_sl.visible = false
        @Exit_Game.visible = true
        @Exit_Game_sl.visible = false
      when 1
        @New_Game.visible = true
        @New_Game_sl.visible = false
        @Load_Game.visible = false
        @Load_Game_sl.visible = true
        @Exit_Game.visible = true
        @Exit_Game_sl.visible = false
      when 2
        @New_Game.visible = true
        @New_Game_sl.visible = false
        @Load_Game.visible = true
        @Load_Game.visible = false
        @Exit_Game.visible = false
        @Exit_Game_sl.visible = true
      end
    @New_Game.x = Pernalonga::Title_new_game_x
    @New_Game.y = Pernalonga::Title_new_game_y
    @New_Game_sl.x = Pernalonga::Title_new_game_x
    @New_Game_sl.y = Pernalonga::Title_new_game_y
    @Load_Game.x = Pernalonga::Title_continue_x
    @Load_Game.y = Pernalonga::Title_continue_y
    @Load_Game_sl.x = Pernalonga::Title_continue_x
    @Load_Game_sl.y = Pernalonga::Title_continue_y
    @Exit_Game.x = Pernalonga::Title_sair_x
    @Exit_Game.y = Pernalonga::Title_sair_y
    @Exit_Game_sl.x = Pernalonga::Title_sair_x
    @Exit_Game_sl.y = Pernalonga::Title_sair_y
  end
  
 def perform_transition
    if Pernalonga::Title_transition_random == false
      if @transição == 0
    Graphics.transition(Pernalonga::Title_transition_time, 
    "Graphics/Transitions/" + Pernalonga::Title_transition_nome[0])
    elsif @transição == 1
    Graphics.transition(Pernalonga::Title_transition_time, 
    "Graphics/Transitions/" + Pernalonga::Title_transition_nome[1])
    elsif @transição == 2
    Graphics.transition(Pernalonga::Title_transition_time, 
    "Graphics/Transitions/" + Pernalonga::Title_transition_nome[2])
    elsif @transição == 3
    Graphics.transition(Pernalonga::Title_transition_time, 
    "Graphics/Transitions/" + Pernalonga::Title_transition_nome[3])
  end
else
    Graphics.transition(Pernalonga::Title_transition_time, 
    "Graphics/Transitions/" + Pernalonga::Title_transition_nome[0])
    end
  end
  
  alias pernalonga_scene_title_terminate terminate
  
  def terminate
    super
    $game_map.interpreter.command_end
    pernalonga_scene_title_terminate
    @mapa.dispose
    @New_Game.dispose
    @New_Game_sl.dispose
    @Load_Game.dispose
    @Load_Game_sl.dispose
    @Exit_Game.dispose
    @Exit_Game_sl.dispose
    
  end
  
  alias pernalonga_scene_title_update update
  def update
    super
    pernalonga_scene_title_update
    update_mapa
    @mapa.update
    @New_Game.update
    @New_Game_sl.update
    @Load_Game.update
    @Load_Game_sl.update
    @Exit_Game.update
    @Exit_Game_sl.update
    if Pernalonga::Title_Comando_picture == true
      case @command_window.index
      when 0
        @New_Game.visible = false
        @New_Game_sl.visible = true
        @Load_Game.visible = true
        @Load_Game_sl.visible = false
        @Exit_Game.visible = true 
        @Exit_Game_sl.visible = false
      when 1
        @New_Game.visible = true
        @New_Game_sl.visible = false
        @Load_Game.visible = false
        @Load_Game_sl.visible = true
        @Exit_Game.visible = true
        @Exit_Game_sl.visible = false
      when 2
        @New_Game.visible = true
        @New_Game_sl.visible = false
        @Load_Game.visible = true
        @Load_Game_sl.visible = false
        @Exit_Game.visible = false
        @Exit_Game_sl.visible = true
      end
    end
  end
  
  def update_mapa
    $game_map.interpreter.update      # Atualização do interpretador
    $game_player.update               # Atualização do jogador
    $game_system.update
    $game_map.update
  end
  
 def create_title_graphic
    @sprite = Sprite.new
    @sprite.bitmap = Cache.system("")
  end
  
  def create_command_window
    Window_Base.hide_cursor_animation # Ho aggiunto qui!!!
    s1 = Vocab::new_game
    s2 = Vocab::continue
    s3 = Vocab::shutdown
    if Pernalonga::Title_Comando_vertical == true 
    @command_window = Window_Command.new(172, [s1, s2, s3])
  else
    @command_window = Window_Command.new(372, [s1, s2, s3], 3)
    end
    @command_window.x = Pernalonga::Title_Comando_x #(544 - @command_window.width) / 2
    @command_window.y = Pernalonga::Title_Comando_y #288
    @command_window.opacity = Pernalonga::Title_opacidade
    if @continue_enabled                    # Se houver arquivos salvos
      @command_window.index = 1             # Opção habilitada
    else                                    # Se não houver arquivos salvos
      @command_window.draw_item(1, false)   # Opção desabilitada
    end
    @command_window.openness = 0
    @command_window.open
    if Pernalonga::Title_Comando_picture == true 
    @command_window.opacity = 0
    @command_window.contents_opacity = 0
  end
  #--------------------------------------------------------------------------
  # * Elimina la finestra dei comandi
  #--------------------------------------------------------------------------
  def dispose_command_window
        @command_window.dispose
        Window_Base.show_cursor_animation # Ho aggiunto qui!!!
  end
  end  
end
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top