Ok how do i make an object move towards the mouse(prefferably on a key press) but with a fixed speed. currently i am using:
if(Key.isDown(Key.UP))
{
_x+=Math.round((_root._xmouse-_x)/20);
_y+=Math.round((_root._ymouse-_y)/20);
}
as you can see the speed depends on distance to mouse and hence is not constant…so what do i do?
PS: i am using flash 8 pro