If you're getting into games and not using Sprite Kit, I suggest using someone else's game libraries. Most of them will provide distance between points equations.
Also note that if you're looking to determine if a point is within a certain distance of another point, there's no need to use a sqrt function which will take a relatively long time to run.