draw a circle and then trace it without taking your finger off

is there a tool which could let me “draw” a particular “path” on the screen and then have the object move through the above path via the touch event ?

Im looking to basically draw a big circle(or polygonal) on the screen and then the user must trace it without the user lifting their finger from the screen.
would i need to make a table with x,y coordinates of the area that i want to be traced. and then make sure the user’s touch stays in the event.phase “moved”.

[import]uid: 11094 topic_id: 14397 reply_id: 314397[/import]

Hi if I understand your question correct… I would do it like this:

in event.phase “moved” calculate the distance from the center of the circle to the position of the touch x,y coordinates.
Then if the distance equals the radius of the circle ( +/- some margin ) the user is following the path.

Hope my explanation makes sense?

[import]uid: 13632 topic_id: 14397 reply_id: 53231[/import]

That’s right, although keep in mind you’ll want to store the start position as well to ensure the ends meet.

Peach :wink: [import]uid: 52491 topic_id: 14397 reply_id: 53349[/import]