#coin collision
1 messages · Page 1 of 1 (latest)
i would get rid of the mesh instance and rely on the area2d for collection, that way you won't have the issues with collision as your player will pass through the area2d. look into Signals if you haven't already, you can catch when an Area is entered, or when a body enters an Area (you could do it either way around. I think in my game I have the coin script set up to detect when the player body enters it). Then you do the collection logic and removing the sprite/object as appropriate.
let me try that
ok so how do i give the area 2d a shape?
same way you already have done, add a collisionshape2d as a child
np, took me a while to understand area vs bodies when I first started
(im still a beginner too though :))
still gettin an error for the base coin node
"this node has no shape so it cant collide or interact with other objects"
YOOO
I FIXED IT
thank you so much coolwretch!

gg, nice work
You can add in the solved tag.