deadcell Trouvère Follet
Nombre de messages : 625 Age : 35 Niveau Rpg Maker : Excellent Niveau Jeux Préférés : Final Fantasy, Resident evil... Date d'inscription : 21/03/2007
| Sujet: Splash ecran Mer 11 Juil 2007, 20:01 | |
| Auteur: Inconnu Fonction: Un script pour mettre un splash screen (genre rpgfusion production avant le Title) Creer un nouveau Script au dessus de " Main" nommé Scene_Splash : - Code:
-
# 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 >= 40 * (2+3) and @frame_count < 40 > 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 Puis allez dans " Main" et Remplacez: $scene = Scene_Title.newPar: $scene = Scene_Intro.newPuis, Ligne 5 : Ici, mettez le nom de l'image que vous souhaitez comme splash entre guillemets. | |
|