Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

I want different Font !

Status
Not open for further replies.

Jason

Awesome Bro

Hey everyone, at the moment, my RPG Maker XP uses the Arial Font, which is the same as this website, I don't have a problem with it at all, but...

I want my game to use the CopperplateBold font, but whenever I delete Arial in main, and type CopperplateBold, no writing appears in my game at all.
And also, how do I change the colour of the font to black ?

Can someone please help me with this ?
 
Code:
#==============================================================================
# ** Main
#------------------------------------------------------------------------------
#  After defining each class, actual processing begins here.
#==============================================================================

begin
  # Prepare for transition
  Graphics.freeze
  # Sets default font & size settings.
  Font.default_name = "Arial"
  $fontface = "Arial"
  Font.default_size = 20
  $fontsize = 20
  # Make scene objects
    $scene = Scene_Title.new
  # Call main method as long as $scene is effective
  while $scene != nil
    $scene.main
  end
  # Fade out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Supplement Errno::ENOENT exception
  # If unable to open file, display message and end
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end
 

Jason

Awesome Bro

Ah, I got it to work now, the font is CopperplateTBol lol, my mistake, but thanks anyway cheatking !

Now, can anyone tell me how to change the colour of it to Black, and not white ?
 
Use this code, you can use in the first line of the 'TEMP SCRIPT'. or below the other font code that Cheatking provides:


Code:
Font.default_color = Color.new(255,255,255,255)

and customize your color like a scripting color code.
 

Jason

Awesome Bro

Sorry but it doesn't work, I've tried changing all the numbers and it still doesn't do anything.
Think you could edit the Main for me and put it in as BLACK writing, because I'm confused.
 
And all is there here:

Code:
#==============================================================================
# ** Main
#------------------------------------------------------------------------------
#  After defining each class, actual processing begins here.
#==============================================================================

begin
Font.default_name = 'FONTNAME'
Font.default_size = FONTSIZE
Font.default_bold = true #For font bold TRUE
Font.default_italic = true #For italic font true
Font.default_color = Color.new(0, 0, 0, 255) #The Color now is Black
  # Prepare for transition
  Graphics.freeze
  # Make scene object (title screen)
  $scene = Scene_Title.new
  # Call main method as long as $scene is effective
  while $scene != nil
    $scene.main
  end
  # Fade out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Supplement Errno::ENOENT exception
  # If unable to open file, display message and end
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top