The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Ericashi on February 10, 2010, 07:49:49 PM

Title: Random Title Screen
Post by: Ericashi on February 10, 2010, 07:49:49 PM
Is there any way to make it so your title screen is random. I've been trying to figure out how to do this, but haven't come up with anything yet. Can someone please help?
Title: Re: Random Title Screen
Post by: modern algebra on February 10, 2010, 07:53:12 PM
Probably need a script for it. On the plus side, it would be an easy script to write.
Title: Re: Random Title Screen
Post by: Ericashi on February 10, 2010, 10:36:38 PM
How would I write it? I've tried some things, but I haven't been able to figure out how. If you could help me, that would be great! ;D
Title: Re: Random Title Screen
Post by: modern algebra on February 10, 2010, 11:04:51 PM
Well, if you look at line 35 of Scene_Title, you will see:



    @sprite.bitmap = RPG::Cache.title($data_system.title_name)


Something like the following would do the trick:


    random_titles = ["Title1", "Title2", ..., "TitleN"]
    @sprite.bitmap = RPG::Cache.title(random_titles[rand (random_titles.size)])


Where Title1, ... TitleN are the names of actual graphics located in the Titles folder of Graphics.
Title: Re: Random Title Screen
Post by: Ericashi on February 11, 2010, 02:18:46 AM
Yeah, I tried something similar, but it didn't work. I tried your way exactly, just to be sure, but that doesn't work either, but thanks for your help. I appreciate it.
Title: Re: Random Title Screen
Post by: modern algebra on February 11, 2010, 12:19:01 PM
Well, it works for me, exactly as I had it above. Did you delete the original line? Because you would have to @sprite.bitmap = RPG::Cache.title($data_system.title_name)
Title: Re: Random Title Screen
Post by: Ericashi on February 14, 2010, 05:41:51 AM
I deleted the original script, but I will try it again and see if I can get it working. If it works this time, I'll tell you. I might even try it on a new file, just to see if it's just the game I'm working on right now.