ID:2567329
 
(See the best response by Kaiochao.)
Code:
mob/Robots
New()
respawn = loc
src.Moving()
..()
mob/Robots/proc
Moving()
if(Target)
if(get_dist(src,Target)>=10 || Target.invisibility == 6)
Target = null
walk_to(src,respawn,0,0.5)


Problem description:

I'm having Mobs move back to their re-spawn point after chasing me for a bit, but they never actually get to their re-spawn point. They walk right up to it but never really walk on that spot. Am i doing something wrong?
Best response
The walk procs only work until the slightest overlap happens. In tile movement, that's enough, because any overlap of a tile is the same as full overlap. But in pixel movement, that means most of the mover is still not in the destination. It would be nice if the walk procs would align the centers of the bounding boxes instead.

For now, you'll just have to write your own movement loop to take it the rest of the way, or you could just teleport them if no one's watching.