I have 2 families: 1 for buttons, 1 for text.
Buttons are Sprites, Text are text-object that are OVER the buttons.
I'm trying to shorten my VERY LONG code to more efficient using the families and "For Each".
With my old VERY LONG code it works great, but I can't make it work using for each:
Instead of using every single button (individual object for each button) and every single text-object for each means (lots of objects) like this:
Which is NOT efficient at all! I want to to make 1 Button Object and duplicate it to how many instances I ever need, same for the Text-Object (ONLY 1 with instances)
So I understand the "idea" that I will need to pick the UID or something for each individual instance duplication of the Object and the Text.
The main idea, I will have only 2 objects: Button & Text with their instances (efficiency!)
But I don't know how to make it work, here is what I start playing around with:
I've attached a new project C3 File so you can play with to see what I'm trying to do
>> DOWNLOAD HERE <<
Thanks ahead! :)