Tweaking your title screen – Part I


Book

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
    return40
  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)end

As 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)
 end

You 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)
 end

You 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)
 end

I 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.

 

There 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!

After this, in part II, i’ll tell you more things, like making subtitles, openness, opacity and much more. If you can make the effort to like or comment then it will get sooner, i think. Don’t hesitate to request me on rpgmakerweb.com through PM, or here, in the comments.

Hope this helps.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s