graphic getting stuck moving from Point A to B

Ok so the layout of the game is you touch the screen to set a movement path for a character to follow. When you switch modes the character moves from point to point in order. I was getting an error where my character would get stuck, typically moving right on the screen. I was using math.atan2 to determine my path

Angle = math.atan2(y2 - y1, x2 - x1) \* (180/math.pi)  
x = x + math.cos(Angle \* math.pi/180)\* playerSpeed  
y = y + math.sin(Angle \* math.pi/180) \* playerSpeed  

Then I tried using transition.to, but he wouldn’t even move. These functions are being called everyframe with the “enterFrame” listening event. [import]uid: 105311 topic_id: 19262 reply_id: 319262[/import]

Could you post up a stripped down sample of how you are going about this? [import]uid: 84637 topic_id: 19262 reply_id: 75372[/import]