if(vec_dist(my.x,player.x) < 1500 && vec_to_screen(my.x,camera))

oder:
if(vec_dist(my.x,player.x) < 1500 && my.clipped != on)