Hi all!
Trying to work out how I can make this work properly. Going to have multiple duplicate objects created offscreen and floating upward towards the player. when the player gets close to one within 200 pixels I'd like all of the objects within that area look towards the player like a magnet. I got it sort of working, but I notice it only goes off from the last created object, so anything that floats past that was created earlier doesn't get triggered.
How can I change the code so all duplicate objects are being checked for a distance of 200 px? Thanks for any advice!