As a new developer I'm very eager to create things on my own, one of which is a claw that the player controls. It can pick up objects, move with them, and can place them down with no issue, other than the fact that when you pick up more than 1 object at the same time, both objects will intersect and become as one, which is not desirable.
They operate using Area2D nodes. For example, when you hit A on the controller, the claw will activate the "pickup object" hitbox for 2 frames, and will pick up an object when one is detected. Currently, there is no way for it to know to pick up only a single object at a time.
I've been brainstorming solutions, and at the moment I think I need a way that I could somehow tell the claw in its pickup collision to prioritize an object.
Thank you for taking the time to read my question.