To measure the distance between 2 points you would use the distance formula, but game studio already has functions for getting the distance:

distance = vec_dist(my.x, your.x);