Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
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.
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
Develop games in your browser. Powerful, performant & highly capable.
Thanks Magistross. It looks like that works.