How To Apply Pinch Effect
Hello Friends, I want to apply Pinch effect. I allready got pinch zoom tutorial from NEW+.
What I want to do is when user pinch the screen that time I want to draw 1 line between 2 fingers.
How to do that? Please help me out.
Thanks
What I want to do is when user pinch the screen that time I want to draw 1 line between 2 fingers.
How to do that? Please help me out.
Thanks
Comments
then do this in that actor
rule - if touch1x is greater than touch2x
change self.positionX to ((touch1.x-touch2.x)/2)+touch1.x
otherwise
change self.positionX to ((touch2.x-touch1.x)/2)+touch2.x
rule - if touch1y is greater than touch2y
change self.positionY to ((touch1.y-touch2.y)/2)+touch1.y
otherwise
change self.positiony to ((touch2.y-touch1.y)/2)+touch2.y
change self.size width to magnitude(touch1.x-touch2.x,touch1.y-touch2.y)
change self.rotation to VectorToAngle(touch1.x-touch2.x,touch1.y-touch2.y)
set the height to however thick you want this actor to be.