hi i have a line that is created everytime the user taps the screen going from one constant point (150, 150) to the point the user taps. I would like an image (image.png) to move from right to left along this line when the line appears, and when the picture reaches the end of the line.. disappears. heres the code of the line when the user taps :
CGContextMoveToPoint(context, 150.0, 150.0);
CGContextAddLineToPoint(context, touch.x, touch.y);
CGContextStrokePath(context);
heres the arc:
CGContextMoveToPoint(context, 220.0, 200.0);
CGContextAddQuadCurveToPoint(context, 150.0, 20.0, firstTouch.x, firstTouch.y);
CGContextStrokePath(context);
CGContextMoveToPoint(context, 150.0, 150.0);
CGContextAddLineToPoint(context, touch.x, touch.y);
CGContextStrokePath(context);
heres the arc:
CGContextMoveToPoint(context, 220.0, 200.0);
CGContextAddQuadCurveToPoint(context, 150.0, 20.0, firstTouch.x, firstTouch.y);
CGContextStrokePath(context);