What would the node heirarchy be for a collectible object like a coin?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By aagoldberg

If I’m trying to create a collectible object, how would I order it’s nodes (parent, child)? Would the parent be a static body with an area2d child node or could the parent be an area2d node?

:bust_in_silhouette: Reply From: Diet Estus

The collectible object could just be an Area2D with a Sprite child. Then you can attach a script and link the Area2D’s “on body entered” signal so that you can call some code when a body collides with the coin.