#coin collision

1 messages · Page 1 of 1 (latest)

silent hare
#

hey there! new to godot and coding mostly and i want to make a coin! However, I can't seem to find a way to remove it as it is an obsticle while still being collected. :(

strange sorrel
# silent hare hey there! new to godot and coding mostly and i want to make a coin! However, I ...

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.

silent hare
strange sorrel
silent hare
#

ohhhh

#

still gettin used to the whole node thingy

#

i used to use gdevelop

strange sorrel
#

np, took me a while to understand area vs bodies when I first started

#

(im still a beginner too though :))

silent hare
#

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!

strange sorrel
#

gg, nice work

frozen gale