• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM SOLVED | Text disappearing after room is restarted

N

newtinn

Guest
THIS HAS BEEN SOLVED BY MYSELF! DON'T WORRY ABOUT IT

I've been making a game and I've been having a problem that when the room is restarted the text disappers. I'm using a custom font I've added in with a sprite.

Code for importing font (this is in the create event):
Code:
global.font = font_add_sprite_ext(spr_font,"!#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",true,2);
Code for showing text (in draw event):
Code:
draw_set_font(global.font);
draw_text(room_width/2-16,32,string(global.points));
draw_self();
Any help will be appreciated.
 
Last edited:
Top