Main Menu
  • Welcome to The RPG Maker Resource Kit.

Random Title Screen

Started by Ericashi, February 10, 2010, 07:49:49 PM

0 Members and 1 Guest are viewing this topic.

Ericashi

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?

modern algebra

Probably need a script for it. On the plus side, it would be an easy script to write.

Ericashi

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

modern algebra

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.

Ericashi

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.

modern algebra

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)

Ericashi

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.