Merge pull request #11689 from carlosm00/getting-started-2d-CharacterBody2D-clarification

Add note for Area2D usage over CharacterBody2D
This commit is contained in:
Carlos Mena
2026-02-06 20:26:42 +01:00
committed by GitHub
parent bc59e556b1
commit bfef9c6fc2

View File

@@ -18,6 +18,14 @@ rule, a scene's root node should reflect the object's desired functionality -
what the object *is*. In the upper-left corner, in the "Scene" tab, click the
"Other Node" button and add an :ref:`Area2D <class_Area2D>` node to the scene.
.. note::
Godot also provides the :ref:`CharacterBody2D <class_CharacterBody2D>` node,
specifically designed for 2D characters, which includes built-in support for some
of the processes explained in this tutorial. In many real world projects, CharacterBody2D
would be a better choice for players and enemies. However, this tutorial focuses on
core concepts that apply to a wider range of nodes and use cases.
.. image:: img/add_node.webp
When you add the ``Area2D`` node, Godot will display the following **warning icon**