Stop touch buttons to react underneath a layer

0 favourites
  • 4 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • 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.

  • 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 ?

  • ,,,,,,,,,,,

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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:

    [attachment=0:khuv59gv][/attachment:khuv59gv]

    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...

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