How do I register a swipe from the character to other side

Get help using Construct 2

Post » Thu Aug 21, 2014 10:48 pm

hey, i want to create a "dash" for my platform character,


i want the player to touch the character and then swipe right to dash right and swipe up to dash up
B
7
S
2
Posts: 57
Reputation: 591

Post » Thu Aug 21, 2014 11:04 pm

On touched object, set variable to object.x
Is touching object
->on any touch end
-->touch.x> variable, do foo... cause thats a swipe to the right.
Image ImageImage
B
168
S
50
G
163
Posts: 8,222
Reputation: 105,063

Post » Thu Aug 21, 2014 11:55 pm

Thanks!
But i found this CAPX that easily registers the first touch and last touch and gives you back the X and Y swipes...

Try it people, it's super easy!.
You do not have the required permissions to view the files attached to this post.
B
7
S
2
Posts: 57
Reputation: 591


Return to How do I....?

Who is online

Users browsing this forum: apalm1341, blissfulwizard and 18 guests