Godot Version
4.3
Question
i made the shape for the sprite, why is there still yellow?
Hover over the triangle, does it say anything?
CollisionShape2D
usually make sense only if they’re a child of e.g. StaticBody2D
, CharacterBody2D
or RigidBody2D
. Your shape is a child of a generic Node2D
.
It will stay for a tiny bit then they show you how to fix it!
The tutorial says to create an Area2D
node as a root of the scene, while you created the generic Node2D
- hence this warning, as I mentioned in my previous reply.
To begin, we need to choose a root node for the player object. As a general rule, a scene’s root node should reflect the object’s desired functionality - what the object is. Click the “Other Node” button and add an Area2D node to the scene.