Hello,
I'm not sure my question is very clear so let me explain.
I got an open-source tileset (this one) where there's numbers in sprite form, for scoring and such I assume. But I wonder how you could turn a variable into those sprites?
So far I went for this structure:

Give us that (I pre-allocated the "0" sprite on texture rect):

Should I make a folder with all the numbers sprites, parse them all, load them into an array and load the corresponding digits?
Or can you read it directly from the tileset on-the-go ?
Thanks in advance.