Bonjour comme le nom du sujet le dis ces un script pour mettre un splash screen
Creer un nouveau Script au dessus de Main nommé Scene_Splash :
- Citation :
- # Scene for displaying intro pic.
class Scene_Intro
def main
@picSprite = RPG::Sprite.new
@picSprite.bitmap = RPG::Cache.picture("splash")
# Make transparent
@picSprite.opacity = 0
# Unfreeze graphics
Graphics.transition
# Loop until the scene changes.
@frame_count = 0
# As long as this instance is the scene.
while !($scene != self)
Graphics.update
# If you need any input
#Input.update
@frame_count += 1
# about 2 seconds fade in
if @frame_count <= 40 * 2
@picSprite.opacity = 255 / (40 * 2) * @frame_count
else
# Let the picture show for about 3 seconds.
# The fade out then starts at 2+3 seconds and
# will last for 2 seconds.
if @frame_count >= 40 * (2+3) and
@frame_count <= 40 * (2+3+2)
# Count frames since start of fade out only.
@picSprite.opacity = 255 - 255 / (40 * 2) * (@frame_count - 40 * (3+2))
else
# Full fade out
if @frame_count > 40 * (2+2+2)
# Change to title
$scene = Scene_Title.new
end
end
end
end
# Freeze (prevent writtion to graphic)
Graphics.freeze
#Free memory
@picSprite.dispose
end
end
Puis allez dans Main et Remplacez:
- Citation :
- $scene = Scene_Title.new
par:
- Citation :
- $scene = Scene_Intro.new
Modifications :
Ligne 5 : Ici, mettez le nom de l'image que vous souhaitez comme splash entre guillemets.
Auteur : DarkSquall (enfin je crois...)