iOS Question Detect finger swipe

tufanv

Expert
Licensed User
Longtime User
hello i need to detect finger swipe to right left down and up. Is it possible with b4i ?

Ty
 

ilan

Expert
Licensed User
Longtime User
I get that part, so that 20%x is the minimal swipe distance which is not really required?

yes it is required because if you put only if x - starx then..

it can be raised only by touching the panel

because let say x = 20.125 and startx is by action_down also 20.125

now if i move my finger only 0.001 then it will be raised and in reallity you dont even need to move your finger for that small distance its enough to touch the panel

so you can play with the value of the movement (instead of 30% you can write 20%)..

but there should be a movement of the finger before it will be raised...
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
Indeed but it depends on the application.

In my minigame I calculated the gridbased position on any movement so it was not needed there since you could move an object to the right and left untill releasing your finger.

so it was more a keeptouchingswipemove kind of thing.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Indeed but it depends on the application.

In my minigame I calculated the gridbased position on any movement so it was not needed there since you could move an object to the right and left untill releasing your finger.

so it was more a keeptouchingswipemove kind of thing.

ok but in this case you dont need to detect any swipe action from the user
you only change the view left/top by action_down and action_move...
 
Upvote 0
Top