Originally Posted By: Fab4
I wouldn't do it this way...
calculate the distance between the two object
sqrt(pow(player.x-my.x,2)+pow(player.y-my.y,2))


The vec_dist function does this for you.