[Suggestion] LayoutName property for objects

Discussion and feedback on Construct 2

Post » Sat Feb 01, 2014 4:07 pm

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.

Thanks!
B
57
S
15
G
11
Posts: 912
Reputation: 12,626

Post » Sat Feb 01, 2014 5:06 pm

Wouldn't doing a system compare of the LayoutName expression work?
B
94
S
33
G
118
Posts: 5,395
Reputation: 75,851

Post » Sat Feb 01, 2014 5:23 pm

You can just use System -> Compare two values to get the current layout.



B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Sat Feb 01, 2014 5:40 pm

Aaah, cheers guys, that's exactly what I need!
B
57
S
15
G
11
Posts: 912
Reputation: 12,626


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests