Tweaking your title screen

TheGreenHorse

Veteran
Veteran
Joined
Mar 31, 2014
Messages
177
Reaction score
26
First Language
English
Primarily Uses
RMMV
I'm sorry if the post hadn't to be made here. Sorry, but I couldn't find another forum.

This topic is made to guide you to tweak a few things of the Scene_Title module. It contains all information for the title screen except for the command window.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|

I guess you know about the transition that takes place in the beginning of the title screen. You might sometime want to slow it down, or quicken the extra time that it takes. There's a method that controls the speed.

It is in Scene_Title only. It is:

#-------------------------------------------------------------------------- # * Get Transition Speed #-------------------------------------------------------------------------- def transition_speed return 20 end You can change it:

  def transition_speed    return 40  end

And tweak the second block like above. Now you can control your title transition!

Same, many of you must want to change the title position. It is at line 58:

def draw_game_title @foreground_sprite.bitmap.font.size = 48 rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2) @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1) endAs you can see the 'rect' here is the rectangle used in making the title text. If you tweak it:

 def draw_game_title    @foreground_sprite.bitmap.font.size = 48    rect = Rect.new(0, 0, Graphics.width-23, Graphics.height / 2) #Edited    @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1) endYou can indent the position to the left, or to the right! That is indeed useful. Just plus or minus. Sometimes, you can also change the height. Just plus or minus the graphics_height.

But now, you want to change the title font specifically. How to do it? It's simple:

@foreground_sprite.bitmap.font.name = "Courier New"Feel free to change it to the font you like. If you see, this is the bitmap which was used in draw_text and font.size in the method too.

 def draw_game_title @foreground_sprite.bitmap.font.name = "Courier New" #Here    @foreground_sprite.bitmap.font.size = 48    rect = Rect.new(0, 0, Graphics.width-23, Graphics.height / 2) #Edited    @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1) endYou can also change the whole thing. See this:

def draw_game_title@foreground_sprite.bitmap.font.name = ["Calibri", "Verdana", "Courier New"]    @foreground_sprite.bitmap.font.size = 56    rect = Rect.new(0, 0, Graphics.width-23, Graphics.height+12 / 2)    @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1) endI tweaked the font size here. I also tweaked the font name with a array, that means if you know, the font will be chosen out of piority. Change it as you wish!

If you see further, i changed both co-ordinates of the text. 

Now, it's time you can convert it to a script! Just add the name Scene_Title before the definition. And add a module to its edges!

module My_New_Script #Change the name to your script'sdef Scene_Title.draw_game_title@foreground_sprite.bitmap.font.name = ["Calibri", "Verdana", "Courier New"]    @foreground_sprite.bitmap.font.size = 56    rect = Rect.new(0, 0, Graphics.width-23, Graphics.height+12 / 2)    @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1)endendThere is more- color, size and a lot more. You can also have a subtitle.

Try seeing my Anvil Title Script, it's made out of this stuff only!

Hope this helps.
 
Last edited by a moderator:

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
usefull for help beginner in rgss3 

but I advise you to help them to input this in a module for advoid to have to always run in the script for input there change

exemple you built this module

module S01 #the name dont bother about thisend #the end of the module
Code:
  def transition_speed    return S01::Transition  end
it help for the organization 

it just a way for help 
 

TheGreenHorse

Veteran
Veteran
Joined
Mar 31, 2014
Messages
177
Reaction score
26
First Language
English
Primarily Uses
RMMV
usefull for help beginner in rgss3 

but I advise you to help them to input this in a module for advoid to have to always run in the script for input there change

exemple you built this module

module S01 #the name dont bother about thisend #the end of the module
Code:
  def transition_speed    return S01::Transition  end
it help for the organization 

it just a way for help 
Thanks, forgot cuz i made it real quick.

Edited! Thanks a lot for helping.
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
Thanks, forgot cuz i made it real quick.

Edited! Thanks a lot for helping.
dont need to apogalize XD

and your a welcome it is kind from you to help people to understand how to edit the original script without have to rebuilt it 

I also suggest you and other people to study the title command window  in the window section it help a lot for understand how to manipulate Window position and also  show how to build a Cursor method
 

TheGreenHorse

Veteran
Veteran
Joined
Mar 31, 2014
Messages
177
Reaction score
26
First Language
English
Primarily Uses
RMMV
I didn't apologize?

I've done It in my script. I just typed down scene_title so I didn't want to go to the window_titlecommand class.

Yeah... I've given options to invisible (opacity) and change the font of the title as well as command.

And of course color too. It can also make a subtitle, wish stated it here. I really had fun making anvil title script.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top