Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I have a UID I pass to a function and I want to know if this is an instance of an object in a specific family (like is UID a member of the "enemy" family?).
thanks for your time.
Develop games in your browser. Powerful, performant & highly capable.
I don't think there are any way to check if an object is part of a family. But you can create them with a variable that you can use instead.
Yes it's possible, basically, if "pick familyA by UID" actually retrieve a familyA instance, then the UID refers to an object from the familyA, otherwise, it's not. Knowing that you can create a function for each family and end up with something like this : https://dl.dropboxusercontent.com/u/700 ... amily.capx
Thanks Magistross. It looks like that works.