Stop touch buttons to react underneath a layer

Get help using Construct 2

Post » Fri Dec 05, 2014 12:17 am

I have layer1 with some touch buttons on it.
Layer2 is another sprite screen which covers layer1.
How do I stop the touch buttons to react underneath layer2's screen ?
I already tried to make the background sprite in layer2 solid, but it didn't work.
B
5
S
1
Posts: 22
Reputation: 417

Post » Fri Dec 05, 2014 10:13 am

I provided an example.capx file.
When you run the project in the browser try to click with the mouse in the same spots on screen
where the buttons are located in the layer below and you will see a text sentence appear in response to any touch
in Layer 2 which is not logical.
The background sprite in Layer 2 should be solid.
Why the background sprite in Layer 2 responds to the touch buttons ?
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 22
Reputation: 417

Post » Fri Dec 05, 2014 11:41 am

,,,,,,,,,,,
You do not have the required permissions to view the files attached to this post.
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Sat Dec 06, 2014 9:47 pm

Thanks Korbaach.
I've done it a little different with the same approach.
The screenshot is for others who might stumble across the same issue:

06-12-2014 23-35-29.png


But still I think that something like this should be a default implementation in the software:
A sprite image in a new layer which covers another layer with touch buttons shouldn't be transparent
to any touch in the same buttons position unless you specify it in code that the layer is invisible...
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 22
Reputation: 417


Return to How do I....?

Who is online

Users browsing this forum: engin20020, rbailey83, tarek2 and 21 guests