|
|
[XP]Ever wanted more then one title?
|
|
|
|
|
Posted 2008-03-04, 08:29 PM
in reply to !King_Amazon!'s post "Tutorials"
|
|
|
|
For RMXP.Ok... I know there are a few people out there who would like to know how to have more then one title.. So that way you can have so and so fancy productions, then perhaps a poem, then the actual title scene. Well, if thats the case then i have the answer for you.. Basically all you have to do is this.
Go to the script section and go into your scene_title menu.
Go to line number 34, or look for @sprite = Sprite.new
And directly below it, above the script below it. past in this.
@sprite.bitmap = RPG::Cache.picture("intro1")
Graphics.transition(60,"Graphics/Transitions/" + "016-Diamond02")
Graphics.freeze
Make sure that whatever words are in the Rpg::Cache.picture("intro1") is what the file you want to be your extra titles name, so if you wanted "Clouds" as your first title screen, put ion @sprite.bitmap = RPG::Cache.picture("Clouds") and have a file in your picture section of the material base named Clouds.
Now for the next step.
#Disposes the images and fades out.
@sprite.bitmap.dispose
@sprite.dispose
Graphics.transition(60,"Graphics/Transitions/" + "016-Diamond02")
Basically it will wipe that title away and bring your next title up. So if you wanted like..five titles, just post the codes five times, and import five files with the same name into the pictures folder of your material base.
And if you want to slow down the fade out part so someone can read whats there.. put this code in under Graphics freeze part.
# Will wait 2 seconds...
sleep(2)
you can edit the number so it will wait for say...5 or 20 if you wanted.
Once you have that set up make sure that this code is below the last title screen you put up.
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
That will bring to the title screen with your "New game" "Continue" "Shutdown".
And there you go, simple yet effective.
|
|
|
|
|
|
|
|
|
|
|