What's the best way to make every single instance of a sprite do an action when the main character is near that sprite?
Simply having:
Character x < Enemy.x + 100
Character x > Enemy.x - 100
----------------set Enemy X to Enemy.x + 1
would make every instance of Enemy move if the Character is 100 pixels in front or behind of the first Enemy added to the layout.
It doesn't check the conditions for every instance of Enemy individually.