T
Tommystorm9
Guest
Currently I am trying to make a transition screen between levels for my game. However, I am having some trouble with the draw_text() function.
It simply wont draw the text to the screen when running in a browser, but it works fine when running it in the IDE.
Here is the code I am using.
Here is what it looks like when I run it in the IDE.
That is what I want it to look like when I run it in the browser.
However, when I do it looks like this...
Any help would be massively appreciated.
Thanks in advance!
Edit:
It's probably worth mentioning that this is the only time where it doesn't work.
All the other times I have to draw text (even with the same font), it works perfectly.
It simply wont draw the text to the screen when running in a browser, but it works fine when running it in the IDE.
Here is the code I am using.
GML:
draw_set_halign(fa_center);
draw_set_valign(fa_middle);
draw_set_font(fntMain);
draw_text(room_width/2,room_height/2,"Entering level \n" + string(global.level + 1));
That is what I want it to look like when I run it in the browser.
However, when I do it looks like this...
Any help would be massively appreciated.
Thanks in advance!
Edit:
It's probably worth mentioning that this is the only time where it doesn't work.
All the other times I have to draw text (even with the same font), it works perfectly.
Last edited by a moderator: