Currently working on a card game, but since cards overlap the detection for hovering them is small. This also means that the top card which should have full detection doesnt. Modifying the specific card’s CollisionBox2D resizes all of them. Is there any workaround or way to do this?
The collision shape is a resource, meaning the problem likely stems from you modifying a resource that is shared by every card. If each card is a node created in the editor, you can just make new resources for each. If you are creating them through a script, a possible fix could be making a new resource for each in code. I haven’t done the latter before, so I’m not entirely sure if it’s possible or would work though. Hope this helps in some way!
go into the card object, select the collisionBox2d and then set the flag “local to scene”, which makes them all unique if they are instantiated multiple times into the scene (like having multiple cards in your hand).