Slide trough menu and disable touching the buttons

0 favourites
  • 2 posts
From the Asset Store
A well commented template with list menus and shops to use in your top-down RPGs or metroidvania games!
  • Hi all!

    I am mostly creating applications for Android.

    This is fun but the hastle is about the screensize you got to use.

    So.. To fix this point i always try to find good ways to put my content in a good way.

    Now.. I have this idea where i got to much content for my screen. I want to be able to slide trough.

    The idea:

    Those "objects" go on for about 15 sprites

    What i want to do is being able to slide trough by swiping..

    So what i tried is pinning all objects to a background behind it.

    I gave the background a drag & drop behaviour on horizontal.

    This actually works pretty cool but now the problem is.. All objects have the touch action.

    So once i make them untouchable dragging from left to right works perfect.

    Once i make them touchable, the touch object will overrule the drag & drop which results in doing the action on touch.

    I hope i made myself understandable.

    Any help is kindly needed!

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would probably choose to make the touchable object react to on touch end and start a timer on touch to see if touch has lasted longer than a certain amount of time.

    You could also check how much the touch has moved during touch and guess if drag was meant or button touch.

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