I'm trying to create a magnetic attraction to specific instances of an item towards the player character when they are within a certain distance of the specific instance.
I have the magnetize logic down and it seems to work fine except I can't seem to find a way to make it only work for the nearest instance. Instead it works for every instance on the level.
I'm new to this program so this might be an easy fix, but any help would be appreciated! The capx file is links below and I've set the movement to WASD.
drive.google.com/file/d/0B_fsFsHtHjNqTkY3N1dVanFmenM/view