I'm having some difficulties with setting this up...
I have two sprites - center (grey box) and target (red box)
target is moving with simple events using WSAD keys (no behaviors)
center is always lerping to target.XY and anglelerping to target.XY
speed of both lerps is based on distance(center.XY,target.XY)
It's fine in the way it works, but I don't like it when it comes to corners.
<img src="http://dl.dropbox.com/u/34375299/Construct%202/bugs%20and%20fixes/move%20around%20circle2.jpg" border="0" />
here distance A is always the same, so center is lerping to target with the same speed
<img src="http://dl.dropbox.com/u/34375299/Construct%202/bugs%20and%20fixes/move%20around%20circle3.jpg" border="0" />
but here distance B ? A and when target is in that area center speed's up and all other things I have looks "boosted".
My question is, how can I limit target distance to move only within green circle and only on the edge of that circle (blue stroke) using WSAD keys.