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
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 !