How do I make it so if the player is holding one object and then collects another object, the object doesn't overlap and just stays static, until the player stops holding the other object.
Develop games in your browser. Powerful, performant & highly capable.
Define "holding".
Are you using the drag and drop behavior?
You could simply disable it on collision with another object, and re-enable on mouse released.
Ok thanks!