plinkie wrote:I think you're using families wrong here, unless you're planning to have more creature types in future? You can set up the worm as a 'container', this then means that when one part is destroyed, they will all be destroyed. They're useful for this. Families are for affecting a family of objects at once i.e. a number of different kinds of worms rather than parts of a single object. If they're a container then this logic might work because if you pick a part of the worm to check against then it will pick every other part of the worm as well.
The problem is that i only want to destroy the enemy when all the parts have life=0 .
I mean, i can hit until the head of the worm get life=0 but only when all the parts of the worm have life=0, this means head and the 4 body parts be destroyed.
I can do that when the head or the body is life=0 destroy, but the problem is how destroy the entire worm only when all the parts are life=0.
Which expresion i have to use in Construct2 to compare a serie/group of instance objects that when match some criteria do X action?
I mean, i also tried to use expresions without family only direct to the object, body and head=0 then do action with the same result.