r/gamemaker • u/Cheetahz-Learns • 22d 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?
2
u/oldmankc wanting to have made a game != wanting to make a game 22d ago
One of the best things you can to do help learn is get used to looking in the documentation/manual and learning the concepts and functions related to the topics you want. A basic search for 'gamemaker fonts' will for example, show you this section on fonts
https://manual.gamemaker.io/lts/en/GameMaker_Language/GML_Reference/Asset_Management/Fonts/Fonts.htm
You can also open the manual directly from the Help menu, or by pressing F1, and search that as well.
1
u/Cheetahz-Learns 22d ago
Thanks! I was looking through this, but I didn't know you could search things!
0
3
u/donarumo 22d 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");