Game Maker Community: Help Please! How To Change Font Of Draw Score? - Game Maker Community

Jump to content

Novice and intermediate users who are learning GML, or still using Drag & Drop action icons, can get help from more experienced members.

Please READ the Novice Q&A Forum Rules prior to posting. And remember that the General GMC Rules apply here too.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help Please! How To Change Font Of Draw Score?

#1 User is offline   wolfensteinb 

  • GMC Member
  • Group: GMC Member
  • Posts: 63
  • Joined: 01-February 09

Posted 22 March 2009 - 07:08 AM

hie!!
Help please!! How to change font of Draw Score?? thanks!!
0

#2 User is offline   Jumpey 

  • GMC Member
  • Group: GMC Member
  • Posts: 408
  • Joined: 18-June 06

Posted 22 March 2009 - 07:40 AM

Under the draw tab is a set font action. It uses a font resource. Make sure you are running Game Maker in advanced mode (Change via file menu).

This post has been edited by Jumpey: 22 March 2009 - 07:41 AM

0

#3 User is offline   zappy77 

  • GMC Member
  • Group: GMC Member
  • Posts: 1856
  • Joined: 08-February 07

Posted 22 March 2009 - 07:46 AM

Well firstly set GM to advanced mode.
Done?
Then create a font, change that font's settings to fit your needs.
Go to the scores draw event and just above that code insert this.

draw_set_font(YOURFONT)

replace YOURFONT with your newly created font.
0

#4 User is offline   wolfensteinb 

  • GMC Member
  • Group: GMC Member
  • Posts: 63
  • Joined: 01-February 09

Posted 22 March 2009 - 02:38 PM

hey i tried it and it says this error on startup

FATAL ERROR in
action number 2
of Draw Event
for object obj_controller:

COMPILATION ERROR in code action
Error in code at line 1:
draw_set_font(Berlin Sans FB)

at position 22: Symbol , or ) expected.
0

#5 User is offline   Dreedo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1183
  • Joined: 03-June 07

Posted 22 March 2009 - 02:42 PM

GML codes cannot have spaces in them. (usually)

Try changing the font name and code to this

Berlin_Sans_FB

This post has been edited by Dreedo: 22 March 2009 - 02:43 PM

0

#6 User is offline   wolfensteinb 

  • GMC Member
  • Group: GMC Member
  • Posts: 63
  • Joined: 01-February 09

Posted 22 March 2009 - 03:48 PM

now it says this
action number 2
of Draw Event
for object obj_controller:

Error in code at line 1:
draw_set_font(Forte)

at position 15: Unknown variable Forte

can u please make a example .gmk file and UPLOAD.
PLEASE PLEASE PELASE!! :P
0

#7 User is offline   Dreedo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1183
  • Joined: 03-June 07

Posted 22 March 2009 - 03:51 PM

From the looks of that, your font that you put into game maker isnt called 'Forte'

Heres what you do

1. In game maker, create a font and then name it 'Forte'.

2. In the draw event of the obj_controller write the code that you put in on the last post.

3. It should work fine now.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users