Can you please explain this code neatly .I'm not able to understand it properly beacuse im new to construct 2.
On touch set initx, inity variables to touch xy, set isintouch variable to 1
variable isintouch=1, set mydist variable to distance(initx,inity,touch.x,touch.y)
->initx>touch.x, do foo
->initx<touch.y, do pitydafoo
I want to rotate the wheels by touch .If i move my finger clockwise then wheels should rotate clockwise and if i move my finger anticlockwise then it should move anticlockwise direction.
Can you please put .capx file or put code of rotation of wheels by touch gesture .