I'm trying to make it so that when the player goes over the blue square he "collects" it. What should happen is that the blue square gets destroyed and 1 is added to the amount of blue squares that the player has. This works fine if there is only ONE blue square to pick up, but if there are multiple blue squares on top of each other they all get destroyed and only 1 gets added to the amount that the player has.
To test, you can download CAPX below and run it. To spawn some blue squares press 3. Spawn a lot and they will fall on top of each other, try to collect them and only 1 will be collected but all will be destroyed.
Any help is appreciated.