Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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 am wondering if there is a way to use an objects name as a family event somehow,like for example:
Blue: Object name is "Player"
and if so. how.
Thanks in advance.
Pretty sure theres no event that lets you retrieve the name of an object. In the layout editor you could just give the object a string variable with the initial string being its name. Then compare the variable in the event sheet to do whatever.
You can do it with OID which is unique for each object type. When you get the OID of a family you get the OID of it's actual type.
+ Blue: Pick by Blue.OID Equal to Sprite.OID
-> Blue: Destroy
Develop games in your browser. Powerful, performant & highly capable.
Ah i see. Cool, thanks !