swiping gesture with capx

Get help using Construct 2

Post » Sat Mar 19, 2016 2:12 am

I am a little bit unhappy about the precision of my example - so hopefully someone can help me out.

What the example does
set text if you swipe in a certain direction (right now 1,2,4,8 o'clock)

Where I am unhappy:
Doesn't always work - especially on touch screens

https://www.dropbox.com/s/3ekie8qk10zp6 ... .capx?dl=0

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Sat Mar 19, 2016 10:19 am

Thought about the problem and solved it in another way (now it works as It should)
For everyone with the same problem here is my new capx

https://www.dropbox.com/s/ynt848glg9e7b ... .capx?dl=0

Here I just check the touch start and touch end and calculate the angle.
to better understand it I made it with variables

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707


Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher and 2 guests