In my game there is a finish area. The object of the game is to collect all the keys in the finish area. When ball enters the finish area only one key should be collected.
I have made a Key scene with Area2D as root node & added a sprite & CollisionShape2D to it. I place several (up to 3 or 4) keys (scenes) in the finish area with different rotations (positions will be slightly different). As the finish area is not so big the keys will overlap each other.
When a player enters the area, only one key should be collected, how can I achieve that? Thanks!
Note: when a key is collected, I remove the key as well as that player from the scene.