Can you calculate touch swipe speeds?
I want to be able to have smooth swipe gestures like my Samsung Galaxy S Smart Phone! :)
make an object with three instance variables:
oldX, newX, swipespeed we will calculate horizontal swiping speed and put it into swipespeed in every tick:
is in touch
-- set oldX to newX
-- set newX to touch.X
-- set swipespeed to abs(newX - oldX)
Would you be so kind as to incorporate it into this capx file for me?
Ill understand it better if I see it. Not much of a coder.
here you go
Cheers! Your a star! ;)
Develop games in your browser. Powerful, performant & highly capable.
Would it be possible to add speed to the touch object, and drag and drop?
That would be useful...
I'm currently trying to tie in Touch Gestures and Swipe Speeds together to create something similar to mobile and tablet devices!
2Bdigital : I'm not sure, but does the Unistroke Gesture Recognition plugin helps you in that context (by adding a swipe gesture) ?
I think it does but I've already used Yann's touch gesture example to create this. Might have a look anyway as it may be some help to me.
I need to know how I can combine both a swipe gesture and swipe speed to create something you see on all mobile/tablet devices.
I have an example if anyone wouldn't mind taking a look...