how to restrict the Counter Clockwise Rotation in Corona SDK?

Hi All,

In my game I need to move the hour hand clockwise only.I need to restrict the counter clock wise moving/rotation of hour hand.May I know how to restrict the counter clockwise direction of hour or minutes hands (Object) in Corona SDK?

Thanks…

Best Regards,

John

In general I’d say within the touch function set a variable to it’s current rotation angle, then if the user tries to rotate it less than that (within the moved phase) then set it to that variable.  Otherwise allow for rotation if the number is positive/higher than the variable.

In general I’d say within the touch function set a variable to it’s current rotation angle, then if the user tries to rotate it less than that (within the moved phase) then set it to that variable.  Otherwise allow for rotation if the number is positive/higher than the variable.