[Suggestion] LayoutName property for objects

0 favourites
  • 4 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • This is a real quick, real small suggestion that I hope can be implemented easily. Just like objects have the property LayerName and LayerNumber - to determine to which layer they belong (very useful in picking) - I'd like to request a similar LayoutName property.

    This particular request stems from the fact that I'm currently working on a game which has a large number of layouts (one for each screen in a first-person adventure game) which all share a common event sheet. Some of these screens will have common objects that behave differently depending on where they are. While I can create a variable called Parent or something and manually assign it to every instance of the object (what I'm currently doing), it'd be far easier if I could simply pick them by which layout they're in.


  • Wouldn't doing a system compare of the LayoutName expression work?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can just use System -> Compare two values to get the current layout.

    <img src="http://i.imgur.com/sOqC8SR.png" border="0" />

  • Aaah, cheers guys, that's exactly what I need!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)