Touch items or swipe/drag menu, help!

0 favourites
  • 2 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi all,

    I'll try and explain this as best as I can. I have a menu that can be dragged from left to right with touch, with several menu items that can be touched and brought into the game. Here's a screenshot of what I mean.

    So here is the issue, the only way I can manage to differentiate between swiping the menu and creating an item is to use the Touch On Hold event. This definitely isn't ideal, since I would like to be able to immeadiately touch/grab the item and bring it into the game. Here is the events I'm using for the entire menu system:

    Any suggestions would be greatly appreciated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So the question is: How would you differentiate between the two possible events?

    I guess one way would be to determine the direction of the movement of the touch..

    If it is more or less horizontal - do the menu drag/swipe

    if it's more or less vertical - move the menu-Item..

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