L
Lemon85
Guest
I'm trying to make a custom font with the font_add_sprite function, but every time I try to use the variable global.talkFont in other objects' events, it has an error and says it isn't defined. Also, the apostrophes don't show up.
For the Create Event, the code is:
map_string = "@\"?!.<>^~*:;,-#$AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz/[\\]%()1234567890[]&_=' ";
global.talkFont = font_add_sprite_ext(talkfont, map_string, true, 1);
For the Draw Event, the code is:
draw_set_font(global.talkFont)
draw_text(600, 600, "Please Work!");
For the Create Event, the code is:
map_string = "@\"?!.<>^~*:;,-#$AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz/[\\]%()1234567890[]&_=' ";
global.talkFont = font_add_sprite_ext(talkfont, map_string, true, 1);
For the Draw Event, the code is:
draw_set_font(global.talkFont)
draw_text(600, 600, "Please Work!");
Last edited by a moderator: