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