Family Picking issue

Discussion and feedback on Construct 2

Post » Sun Sep 09, 2012 1:42 am

I've just created a new object called RainCloud. RainCloud sprite belongs to the CloudFamily list, but this second command which changes the opacity doesn't seem to be working for the object. Shouldn't a Family SOL list refer to the last created object which belongs to that Family? If I change the command from CloudFamily -> SetOpacity to RainCloud -> SetOpacity it works.

This seems to be unrelated to the other SOL issue concerning sibling events not being able to pick sprites created in prior events on the same chain.

I have tons of commands in branches which need to be able to refer to the last created instance object of a family. I don't want to have to create duplicate code that acts on each sprite type belonging to a family.

Thanks for any advice,
Posts: 10
Reputation: 320

Post » Sun Sep 09, 2012 2:42 pm

Families pick their instances separately, by design. Picking any object within the family does not touch the family's picked instances, so it is still in 'all picked' mode. You probably want to use a 'CloudFamily: On created' trigger instead.
Scirra Founder
Posts: 22,831
Reputation: 176,688

Return to Construct 2 General

Who is online

Users browsing this forum: deathff, ReflextionsDev, Vpick and 3 guests