Chaos_Prime
Member
@Chop: very nice and cool script.
I've been looking over your script and noticed you can add as many splash screens as you want.
@sprite3 = Sprite.new
@sprite3.bitmap = RPG::Cache.picture("Intro-3")
@sprite3.opacity = 0
when 3
@sprite1.opacity = @n
and just add a picture named Intro-3 or 4 or what ever the person wants the number of splash screens to be. If I'm not mistaken. That is.
-=Edit=-
I've tested what I thought would work and it dose with a little editing to Lambchop's script.
I've been looking over your script and noticed you can add as many splash screens as you want.
@sprite3 = Sprite.new
@sprite3.bitmap = RPG::Cache.picture("Intro-3")
@sprite3.opacity = 0
when 3
@sprite1.opacity = @n
and just add a picture named Intro-3 or 4 or what ever the person wants the number of splash screens to be. If I'm not mistaken. That is.
-=Edit=-
I've tested what I thought would work and it dose with a little editing to Lambchop's script.
This is what I did and it works great for a three splash intro.#------------------------------------------------------------------------
# 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 = 3
# 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
@sprite3 = Sprite.new
@sprite3.bitmap = RPG::Cache.picture("Intro-3")
@sprite3.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
@sprite3.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
@sprite3.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
@sprite3.opacity = @n
when 2
@sprite2.opacity = @n
when 3
@sprite1.opacity = @n
end
end
end