Take the "Find Distance" function from inside the project and slap it right into your backpack. But give me credit if you use it in a project of ur own! :D
Formula for Distance: d = square root( (x1 - x2)² + (y1 - y2)² )