One Sprite Different Layouts

Get help using Construct 2

Post » Wed Jan 07, 2015 5:21 pm

If in LAYOUT 1 I refer to sprite X to --- on tap go to layout 2, but in layout 2 sprite X will do something else if tapped. Both layouts using the same Events Sheet. Is this Impossible? or is there a workaround. I want to use less sprites.,. But I need this method.
thx
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Wed Jan 07, 2015 5:24 pm

You can use "LayoutName" to see which layout is currently running. Simply have your sprite do different things according to which layout is active.
B
71
S
30
G
25
Posts: 984
Reputation: 19,503

Post » Wed Jan 07, 2015 5:29 pm

So go to layout vs go to layout (by name) does different things? So if all the layouts are using the same events, then based on the ON TAP of the same sprite, it will react differently? hmm.. that would be nice. checking it rt now. thx
B
9
S
2
Posts: 104
Reputation: 1,098

Post » Wed Jan 07, 2015 5:33 pm

That's not really what I meant. After the "on tap" event, you need to add a sub-event that checks the current "LayoutName", and do something different according to its value.
B
71
S
30
G
25
Posts: 984
Reputation: 19,503

Post » Wed Jan 07, 2015 5:34 pm

nice. thanks. LOL.. Trying it,. thx
B
9
S
2
Posts: 104
Reputation: 1,098


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests