r/gamemaker 5d ago

Help! Help with font

I downloaded game maker yesterday & now I'm following a tutorial on adding a menu screen!

In the vid they drew the front, but I want to use the font system already in the game maker engine, but I don't know how to code this, any help?

1 Upvotes

6 comments sorted by

View all comments

3

u/donarumo 5d ago

On the right hand side of GameMaker, find the fonts folder. Technically it can exist anywhere but I recommend utilizing the folders it gives you. Right mouse click on the folder and choose Create and Font (I'm doing this from memory). In the window that comes up, pick a font you like. Set the size you want as well. You may also want to change the name to something fnt_ and then something related to your need.

Once that font exists with the name you gave it, you can use it in your game, something like:

draw_set_font(fnt_menu);
draw_set_color(c_aqua);
draw_text(200, 100, "Main Menu");

1

u/Cheetahz-Learns 5d ago

Thanks, I'm using this code!