Just an extra to improve your coding...
Instead of 100 use a variable. In fact, I would use a Object Variable, that is, a variable in the enemy object, called "range" and compare distance to enemy.range, thus, you can even have different types of enemies with different ranges.