How do I Touch a Layer?

0 favourites
  • 3 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hi,

    how to click on a specific layer, so to exclude clicking objects on all other upper layers?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you touch the screen, all layers (even invisible ones) and all objects in this point of the screen receive this touch event.

    So if you want to "exclude" some layer or objects, you need to add conditions like "Layer X is visible" or "Sprite is visible" to your touch events.

    Another approach is to use event groups. For example, when player opens the in-game menu, you deactivate "CharacterControls" group and activate "MenuControls" group.

    See these posts for some examples:

  • Thank you very much.

    Would be great to have the option to define layers in the layout for specific interactions - such as inputs, physics or collisions; GREAT in combination with families and touchscreens.

    The "coding" way about event groups seem to meant going absolete.

    Mike

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