How do I use the same Font in multiple occurrences?

Get help using Construct 2

Post » Tue Jun 13, 2017 3:03 am

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?

https://cdn.pbrd.co/images/hSQKwhsrK.jpg

Thank you!
B
9
Posts: 18
Reputation: 361

Post » Tue Jun 13, 2017 3:31 am

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.
ImageImageImage
B
71
S
21
G
232
Posts: 3,696
Reputation: 129,868


Return to How do I....?

Who is online

Users browsing this forum: cb130felix, Kermad, Lancifer, Matei511, mongoose665, piddlyPoo, yiuyiu6666 and 3 guests