I have a spritefont that I want to use multiple times for items to illustrate how many of the same item the player has collected.
What is the proper use? Do I "Clone" each one, does that make a new image for each use in the game, taking up unneeded file size? Or do I target a font's UID object to reflect the variable of how many the player has collected? I don't want 25 spritefont clones of the same image. All numbers will be showing at the same time as in the picture below.
How would you output different variables using the same spritefont to different objects?
Develop games in your browser. Powerful, performant & highly capable.
Don't clone. Either use containers to marry the image/slot to the spritefont, or pick it through some means, UID, custom ID - it all depends on how else you've got things organized.