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
Game development stories & opinions
If I have several different objects grouped together as a family,is it the case I only have to give say a private variable to one of the objects within that family and the rest of the family group also have that variable?
No, if you want to use a family variable, use the family manager accessible in the project tab of the ribbon. This can add/remove variables from all objects in a family.
Thanks for the quick reply .In my game I have a sprite which is not in the family.This sprite can cover 4 of the 9 family objects.I check if the non family sprite is overlapping the family sprites.I then want to set a variable called "selected" for each of the covered sprites to 1 so that I can perform actions on only the covered sprites.I hope I have explained clearly enough.
If you want to set a private variable for a family sprite, then make sure it's visible (or add it) via the family manager. Then you can set it via events like any other variable.
Develop games in your browser. Powerful, performant & highly capable.
Try the documentation.
[quote:lwafw3ee]If all objects in a family have a common private variable - must be named the same - effect, or behavior, then it is common to the family, and can be accessed in the event sheet editor.