Circular Motion. its that possible?

I would like to make a mechanism where the player will have to touch the screen on top of a round object and have to make a circular motion to open a door.
Someone could help me with this code? I think many people would help someone to share this code

Thank you [import]uid: 23063 topic_id: 14517 reply_id: 314517[/import]

As a vague suggestion (I’m not sure what code would be used to do this), I would suggest making some kind of function where you rotate the object with your touch, and then making it so that when the object is at a specified angle, it will open the door. Also, try making it so that when the object is at, say, an angle of 0, you can’t rotate it counter-clockwise, only clockwise, but when it’s at an angle of 359 or less, it can be rotated counter-clockwise to return it to 0 degrees. I hope that makes sense. [import]uid: 82408 topic_id: 14517 reply_id: 53831[/import]

but with this “touch” event I won’t be able to do circular motion as you are saying in this sample

I really need to do circular motion with my finger =(
with that, we can do a thousand good stuffs [import]uid: 23063 topic_id: 14517 reply_id: 53842[/import]

I’m not necessarily implying another object has to touch it or even that you have to press it. I’m just saying that maybe when you are pressing at least on an area near the handle, maybe some kind of touch joint or some other way of making it so that when you press, the closest spot on the handle to your finger will always be facing your finger. Just make sure that the door handle’s x and y coordinates stay constant without necessarily using the “static” function. This should allow it to rotate without it accidentally moving left, right, up or down. [import]uid: 82408 topic_id: 14517 reply_id: 53976[/import]

Do a search in these forums for “drawing apps”. I think you might find something you can use.

For example, see:

http://developer.anscamobile.com/code/draw-line

The example, might deal with a straight line and then it would be up to you to modify the example to look for a circle.

[import]uid: 67839 topic_id: 14517 reply_id: 53987[/import]