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!
Develop games in your browser. Powerful, performant & highly capable.
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..