Swipe Controls (Finally solved)

Get help using Construct 2

Post » Tue Feb 18, 2014 9:41 am

Hey Guys!!!!!!!!!!
I found out how to implement swipe gestures in construct 2(only 4 are shown)
Here's my example capx(Replace "(dot)" with "." and "(colon)" with ":")
https(colon)//drive(dot)google(dot)com/file/d/0BztXTAzdbNwbemRBQm1RUXV4MlU/edit?usp=sharing

P.S.:Just BTW, if you can understand the logic behind the capx then you could easily implement as many directions as you need.
For example
-for 5 directions cut a circle in 5 parts and spread them out like I've done in the capx(you'll see what I mean)
-for 8 directions smaller 8 triangles etc..

B
3
Posts: 1
Reputation: 177

Post » Tue Feb 18, 2014 9:53 am

Maybe you could upload it as a capx example tutorial.
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

Post » Thu Apr 03, 2014 4:48 pm

Hi,

Seems a bit complicated.

You can do it like this: http://prntscr.com/36ny34
if swipeDistance is positive in this example, then you're swiping down. negative is swiping up.
if you want left and right, then just do the same but with Touch.X
B
10
S
1
Posts: 20
Reputation: 564

Post » Thu Apr 03, 2014 7:35 pm

Message: kiwis is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
tariqayubi wrote:Hi,

Seems a bit complicated.

You can do it like this: if swipeDistance is positive in this example, then you're swiping down. negative is swiping up.
if you want left and right, then just do the same but with Touch.X



do you have a capx of this?
B
2
Posts: 7
Reputation: 164

Post » Fri Apr 04, 2014 3:46 pm

Here, I did all directions, pretty easy... http://goo.gl/NG4hyF
B
10
S
1
Posts: 20
Reputation: 564


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests