GML Converting integer score to display appropriate sprite digits?

Amon

Member
I have a sprite with each cell containing a different digit frame.

If I were to convert a string to digits, how could I go about displaying sprites to show the current score?

Example: If my score was 1376, then it would display the sprites for each number accordingly. This should also work if the score goes into negative values.
 

Amon

Member
I'm unclear on how to use this. I have followed the docs but how would this be used when drawing text?
 

TsukaYuriko

☄️
Forum Staff
Moderator
Like any other font. It lets you convert a sprite into a font, which can then be used as if it was an actual font when drawing text - as in: draw_set_font, draw_text.
 
Top