0 votes

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?

asked Oct 10, 2018 in Engine by aagoldberg (46 points)

1 Answer

0 votes
Best answer

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.

answered Oct 10, 2018 by Diet Estus (1,504 points)
selected Oct 11, 2018 by aagoldberg
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.