Introduction
This is a really simple splash screen for you. When you use this, two splash screens will appear when you open your game.
Steps
1. Open Main and change Scene_Title.new to Scene_Splash.new.
2. Put two graphics called Intro-1.png and Intro-2.png into your project's \Graphics\Pictures folder.
(note: these graphics can also be jpgs, gifs, or bmps... it really depends upon your preference)
3. Add this Scene_Splash script above Main:
4. Play your game!
This is a really simple splash screen for you. When you use this, two splash screens will appear when you open your game.
Steps
1. Open Main and change Scene_Title.new to Scene_Splash.new.
Code:
Â
 $scene = Scene_Splash.new
Â
2. Put two graphics called Intro-1.png and Intro-2.png into your project's \Graphics\Pictures folder.
(note: these graphics can also be jpgs, gifs, or bmps... it really depends upon your preference)
3. Add this Scene_Splash script above Main:
Code:
Â
#------------------------------------------------------------------------
# Show two splashscreens when your game loads
#------------------------------------------------------------------------
class Scene_Splash
Â
 #--------------------------------------------------------------------------
 # ◠Initialize the scene
 #-------------------------------------------------------------------------- Â
 def main
Â
 # Load the System database & create a new game Â
 $data_system = load_data("Data/System.rxdata")
 $game_system = Game_System.new
Â
 # Initialize some transition stuff
 @show = true
 @hide = false
 @n = 0
 @splash_numb = 2
Â
 # Define info about each splash screen
 @sprite1 = Sprite.new
 @sprite1.bitmap = RPG::Cache.picture("Intro-1")
 @sprite1.opacity = 0
Â
 @sprite2 = Sprite.new
 @sprite2.bitmap = RPG::Cache.picture("Intro-2")
 @sprite2.opacity = 0
Â
 # Update graphics and input
 Graphics.transition
 loop do
  Graphics.update
  Input.update
  update
  if $scene != self
   break
  end
 end
Â
 # Discard your graphics when you leave this scene
 Graphics.freeze
 @sprite1.dispose
 @sprite2.dispose
 Â
 end
Â
 #--------------------------------------------------------------------------
 # ◠Update the contents in this scene
 #--------------------------------------------------------------------------
Â
 def update
 Â
  # If SPACEBAR is pressed, go to to title screen
  if Input.trigger?(Input::C)
   $scene = Scene_Title.new
  end
Â
  # Change the opacity of the graphics
  transition
 Â
  # Update graphics
  @sprite1.update
  @sprite2.update
 Â
 end
Â
 #--------------------------------------------------------------
 # Transition through splash screens
 #-------------------------------------------------------------- Â
 def transition
   Â
   # Fade in a splashscreen
   if @show == true
     @n += 2
     if @n > 255
      @hide = true
      @show = false
      @n = 255
     end
    end
   Â
   # Fade out a splashscreen and load the next one
   if @hide == true
     @n -= 2
     if @n < 0
      @hide = false
      @show = true
      @splash_numb -= 1
      @n = 0
     end
    end   Â
  Â
   # Choose which action to perform in this scene
   case @splash_numb   Â
    when 0
     $scene = Scene_Title.new
    when 1
     @sprite2.opacity = @n
    when 2
     @sprite1.opacity = @n
   end   Â
   Â
 end
Â
Â
end
Â
Â
4. Play your game!