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.

Image

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:

Image

Any suggestions would be greatly appreciated!
B
11
S
2
Posts: 29
Reputation: 706

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..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 22 guests