hi, not exactly, what I meant was so that the object intended to move would just 'jump' to the new position closer towards the other object, not move towards it at any speed. Its likely to do with a combination of direction and x and y values but I don't really know how... thanks for response
THIS is it! i felt like id forgotten something essential. that was lengthdir(). this should definitely do the job. thanks a tonActually, it is not going to work. I made a mistake and forgot that you need to add lengthdir instead.
x += lengthdir_x(distance, dir);
y += lengthdir_y(distance, dir);