Touch Swipe Gestures?

Get help using Construct 2

Post » Fri Jan 20, 2012 3:03 pm

Hi Everybody,

Has anyone attempted "Touch" Swipe gestures for mobile/tablet devices?

Is it possible and if so, how?...

Any help would be appreciated! :)
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 20, 2012 3:13 pm

Its possible yes. But not so easy. Will take a little work.

you will need to test the mouse/touch's x position every tick, If its greater than (x) and Mouse'sX velocity is greater than (x) then do something.
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Fri Jan 20, 2012 3:57 pm

Cheers man!

I've for rough example working! ;)
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 20, 2012 4:07 pm

huh?, you have a example working did you say?

Can I see it please <-- I have not actually done this myself.
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Fri Jan 20, 2012 4:24 pm

Sure you can: Link

I tested it on iPad 1st gen and it works fine! Its very rough but at least I know its possible...

B
5
S
1
G
1
Posts: 111
Reputation: 1,122


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot], YoHoho and 18 guests