Don't know really if this is a bug or a C2 expected behavior. I know there is some particularities about "create objecto scope" but I couldn't find the right answer or similar posts about it.
So, the thing is that Family objects list is not properly updated when creating Family objects inside a loop and you want to use the new members with "Family actions" but this "problem" is not coherent with Family count because it does count the new members.
It happened in one of our projects so I prepared a blank C2 project to "prove it". If this is not a bug, at least will be useful to understand this kind of C2 behavior.
Attach a Capx
https://www.dropbox.com/s/qt3bi89asjpp5 ... .capx?dl=0
Description of Capx
Use of destroy only to prove that Family was not updated after loop finish and the Family count is wrong (?)
Steps to Reproduce Bug
1. Only two squares (blue ones) are destroyed, even if a lot of Destroy action types are after or inside the loop.
2. Family.Count counts 8 squares even if it does destroy two of the squares (blue ones).
3. Only a wait action seems to work with Family objects updates.
1. All squares are destroyed.
2a. Family.Count inside loop: 4, 2, 2
2b. Or Family.Count inside loop. Being coherent with the problem about not destroying all squares: 4, 4, 6.
Operating System and Service Pack
Construct 2 Version ID
239 & 243