How do I... make a layer "solid"?

Get help using Construct 2

Post » Sun Jul 22, 2012 11:14 pm

I have two layers. Each layer has at least one clickable sprite. Some of the sprites overlaps ( but on different layers ). The problem is that clicking on the top layer sprite, will trigger the click event also on the bottom layer sprite. I tried making the bottom layer invisible. Is the same. Even if I have no sprites on the top layer and this is set to "Transparent: No", it'll still trigger the click events in the bottom layer. In conclusion: can I make a layer to NOT allow clicks through?
B
16
S
4
G
3
Posts: 46
Reputation: 2,875

Post » Sun Jul 22, 2012 11:16 pm

You can add a condition "Is on layer X" to your event. Would that solve your problem?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Mon Jul 23, 2012 12:57 pm

Like a charm! Thank you!
B
16
S
4
G
3
Posts: 46
Reputation: 2,875


Return to How do I....?

Who is online

Users browsing this forum: linkman2004, Renfd, supreme676 and 23 guests