Swiping

Get help using Construct 2

Post » Sat Jun 01, 2013 9:01 pm

Hello everyone, got a problem..
I am trying to detect a Swipe, but it wont progress as i wished to..
Would be thankful for any help.
http://www.pic-upload.de/view-19557227/Unbenannt.png.html

I tried with absolute values but didnt change a thing..Help me plx :)
B
3
S
1
Posts: 32
Reputation: 391

Post » Sat Jun 01, 2013 9:40 pm

I'm not sure if this it what you are asking or not.

Global variable StartX, EndX

On Touch Start set touch.x to StartX
On Touch End set touch.x to EndX

Compare StartX and EndX

Or is it going to be using Y coordinates as well?

In that case, you could create a hidden sprite at Touch, then create a hidden sprite at touch end. Then check the distance using the distance expression, then destroy the two hidden sprites.


ArcadEd2013-06-01 21:41:29
B
100
S
31
G
11
Posts: 1,552
Reputation: 21,522

Post » Sat Jun 01, 2013 9:57 pm

well more or less.. i do want to make a hook toward the swiped angle.. for that i need to know how to detect a swipe WITHOUT releasing touch
B
3
S
1
Posts: 32
Reputation: 391


Return to How do I....?

Who is online

Users browsing this forum: tetuan, Yahoo [Bot] and 10 guests