• 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!

Draw variable in gml

S

scott7610

Guest
What is gml for Draw Variable? I need to draw global.strength and it hasto be done in code not D&D.
 

CloseRange

Member
Ragarnak already solved your question, just use
Code:
draw_text(x, y, "Text Here");
just wanted to let you know that if you are using an integer value instead of a string value to specify its a string by doing:
Code:
string(global.strength)
making the finaly code look something like:
Code:
draw_text(x, y, string(global.strength);
 
Top