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.

Changing Font Help

When I was looking for the scirpt so I can change the font face. But it's appears there's no Default_font or font.. There's none  :(.. Where can I find the code so I can change the font for my game
 
Or you are using a Ilegal or Corrupt version.

You must put the code in Game_Temp, in the first line, or in Main below Begin:

Code:
This is the Main Script

begin

Font.default_name = yourfont
Font.default_size = the size of the font
Font.default_bold = if you want bold font

(Sorry for stole your helped Khmp xD  ::))

Good Luck!
 
I don't know why but someone else asked the same question some time ago...

You could paste this as a new script
Code:
class Font
  begin
    Font.default_name = "Times New Roman" # había escogido Century Gothic 30
    Font.default_size = 20
    Font.default_bold = false
  end
end
 
You could make a parallel process, using the script command with that line of code...

The event/common event(though I don't see why you'd use a common event...) would be :
@>: Script: Font.default_name = "Any font you ever wanted." ...
 

khmp

Sponsor

Did you place the code inside main? Could you show us? The error at line 28 is most likely a missing end block error you might be trying to place part of:

** Main
Code:
class Font
  begin
    Font.default_name = "Times New Roman" # había escogido Century Gothic 30
    Font.default_size = 20
    Font.default_bold = false
  end
end

begin
  ...
end
 

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