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

1
2
3
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

Could you post up a stripped down sample of how you are going about this?

views:1449 update:2011/12/30 9:10:41
corona forums © 2003-2011