I have a layout with 6 blue boxes.
As soon as layout starts, I iterate through all 6 blue boxes, destroy them and spawn red boxes in their place.
All is fine until now.
I then want to iterate through all 6 red boxes and make the first 4 with 50% opacity and the other 2 with 0% opacity. Here is where it is failing.
I am using Families.
What is happening is that the second FOR EACH loop is still referencing the blue boxes and setting them 50% and 0% opacity even if they were destroyed.
What am I doing wrong?