This works by making the sprites move towards each other at a speed that depends on how far away they are from each other.