Whoops. Look what a simple > can do when you needed a <.

Replace the > in the if() within the while() with <. That should do it!

That is to say,
if (vec_dist(player.x, my.x) > 80)
should be
if (vec_dist(player.x, my.x) < 80).

Last edited by Logan; 02/06/11 05:46.