HOW CAN I HAVE THINGS BEFORE THE TITLE SCREEN? *RMXP*
Posts
Pages:
1
Sorry I posted again on the forum in such a short amount of time. I tried searching for a way to have a little opening of some sort (pictures only) or a screen where I give credit to script creators, etc. show up before the title screen, but every link I find is outdated and directed towards RMXP.org or any other now gone website. Anyone know how I can do this?
Yes. You can open up the script editor and add some images to play before the title screen shows. I'll have to look at the actual script to see how it does it to replicate it though.
In Scene_Title you can insert this between the load database calls and initializing the system class ($game_system = Game_System.new) and before it makes the title screen graphics (@sprite = Sprite.new; @sprite.bitmap = RPG::Cache.title($data_system.title_name);)
# Load splash screen graphic splash_screen = Sprite.new splash_screen.bitmap = RPG::Cache.title("NAME OF SPLASH SCREEN HERE") # Fade it in over time splash_screen.opacity = 0 opacity_change_per_frame = 12 # Maximum opacity is 255 and RMXP runs at a default rate of 40 frames per second. At 12 opacity change per frame it will fade in completely after half a second while splash_screen.opacity < 255 splash_screen.opacity += opacity_change_per_frame Graphics.update # This will draw a frame to the screen end # Keep the splash screen up for a few seconds for i in 0..120 # The end number is the number of frames it will be up. 120 frames @ 40 FPS = 3 seconds Graphics.update end # Now we simply fade out while splash_screen.opacity > 0 splash_screen.opacity -= opacity_change_per_frame Graphics.update end # We're done with the splash screen graphic so dispose it splash_screen.dispose # This is where "# Make title graphic" will appear
Pages:
1















