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.
Tweaking your title screen
● ARCHIVED · READ-ONLY
-
-
Helped me so much.Thanks !
-
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 moduleCode:it help for the organizationdef transition_speed return S01::Transition end
it just a way for help -
Thanks, forgot cuz i made it real quick.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 moduleCode:it help for the organizationdef transition_speed return S01::Transition end
it just a way for help
Edited! Thanks a lot for helping. -
dont need to apogalize XDThanks, forgot cuz i made it real quick.
Edited! Thanks a lot for helping.
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 -
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.