Touch items or swipe/drag menu, help!

Get help using Construct 2

Post » Wed May 13, 2015 3:15 pm

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!
Posts: 33
Reputation: 771

Post » Wed May 13, 2015 4:12 pm

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..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Return to How do I....?

Who is online

Users browsing this forum: KongosL, Metathronos, ShaDowora and 25 guests