Page 2 of 2

Re: For each object IN LAYER x

PostPosted: Thu Sep 17, 2009 6:20 pm
by Ashley
I don't think so - I think it'd be less elegant! You'd basically have extra icons in the event sheet editor for each type of plugin representing "all" those objects. They would basically useless, because they are too general - eg. actions in the "Sprite" class runs on ALL sprites, which is too broad - it'd include your UI sprites, effects sprites, terrain sprites, as well as players, bullets, enemies etc. etc. And then its functionality is identical to having added all those objects to a family anyway, but with the limitation you can't make it not apply to certain types of sprite. So it is actually less flexible, not to mention large changes to the runtime and event sheet editor to support this, which is hard work and would create new bugs. So I insist - just use a family!

Re: For each object IN LAYER x

PostPosted: Thu Sep 17, 2009 6:53 pm
by Davioware
well explained, and I agree, it would be useless to have such general expressions. That's pretty much what families were made for; to address specific groups of objects.

Re: For each object IN LAYER x

PostPosted: Thu Sep 17, 2009 11:13 pm
by Drasa
Ashley: Hm, now that you say it that way, I have to agree, it is more elegant that way, after all :D