Not sure if this is the best way, but it works.
I created a spawn sprite called Spawn and a check sprite called Check.
The check sprite is 100,100 to give your distance. Naturally you would hide the check sprite, and in game I would even delete them all after you are done.
You can probably also do this without the check sprite, but using Is Overlapping at offset.
https://www.dropbox.com/s/ze9nzlctjprdt78/distance.capx