From 0bac8ebbd4371dcc2f9799e46368910a2eabbf72 Mon Sep 17 00:00:00 2001 From: Kushal K S Date: Wed, 30 Oct 2024 17:53:48 +0000 Subject: [PATCH 1/2] Clarify Area2D warning behavior --- .../first_2d_game/02.player_scene.rst | 15 +++++++++++++-- .../first_2d_game/img/no_shape_warning.webp | Bin 0 -> 15010 bytes 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 getting_started/first_2d_game/img/no_shape_warning.webp diff --git a/getting_started/first_2d_game/02.player_scene.rst b/getting_started/first_2d_game/02.player_scene.rst index 20799618811..4b0773c1707 100644 --- a/getting_started/first_2d_game/02.player_scene.rst +++ b/getting_started/first_2d_game/02.player_scene.rst @@ -20,8 +20,16 @@ what the object *is*. Click the "Other Node" button and add an :ref:`Area2D .. image:: img/add_node.webp -Godot will display a warning icon next to the node in the scene tree. You can -ignore it for now. We will address it later. +When you add the `Area2D` node, Godot will display the following **warning icon** +next to it in the scene tree: + +.. image:: img/no_shape_warning.webp + +This warning tells us that the `Area2D` node requires a shape to detect collisions or overlaps. +We can **ignore the warning temporarily** because we will first set up the player's visuals +(using an animated sprite). Once the visuals are ready, we will add a collision shape as a child +node. This will allow us to accurately size and position the shape based on the sprite’s appearance. + With ``Area2D`` we can detect objects that overlap or run into the player. Change the node's name to ``Player`` by double-clicking on it. Now that we've @@ -98,6 +106,9 @@ When you're finished, your ``Player`` scene should look like this: .. image:: img/player_scene_nodes.webp +Once this is done, the warning on the `Area2D` node will disappear, as it now has +a shape assigned and can interact with other objects. + Make sure to save the scene again after these changes. In the next part, we'll add a script to the player node to move and animate it. diff --git a/getting_started/first_2d_game/img/no_shape_warning.webp b/getting_started/first_2d_game/img/no_shape_warning.webp new file mode 100644 index 0000000000000000000000000000000000000000..5caa74b07786b8e1dd7e5c5374bd55e1c58a17ae GIT binary patch literal 15010 zcmeHpXE@y7x9{jd5M81sTC`CTy+=eZ(HXrnMvY!mln}j)-b?fnW-vw#(Iq-#hD4AU zjHp3y<$vyd&N=r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, 20 Nov 2024 16:14:46 -0800 Subject: [PATCH 2/2] Apply suggestions from code review --- getting_started/first_2d_game/02.player_scene.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getting_started/first_2d_game/02.player_scene.rst b/getting_started/first_2d_game/02.player_scene.rst index 4b0773c1707..24612d023bb 100644 --- a/getting_started/first_2d_game/02.player_scene.rst +++ b/getting_started/first_2d_game/02.player_scene.rst @@ -20,12 +20,12 @@ what the object *is*. Click the "Other Node" button and add an :ref:`Area2D .. image:: img/add_node.webp -When you add the `Area2D` node, Godot will display the following **warning icon** +When you add the ``Area2D`` node, Godot will display the following **warning icon** next to it in the scene tree: .. image:: img/no_shape_warning.webp -This warning tells us that the `Area2D` node requires a shape to detect collisions or overlaps. +This warning tells us that the ``Area2D`` node requires a shape to detect collisions or overlaps. We can **ignore the warning temporarily** because we will first set up the player's visuals (using an animated sprite). Once the visuals are ready, we will add a collision shape as a child node. This will allow us to accurately size and position the shape based on the sprite’s appearance. @@ -106,7 +106,7 @@ When you're finished, your ``Player`` scene should look like this: .. image:: img/player_scene_nodes.webp -Once this is done, the warning on the `Area2D` node will disappear, as it now has +Once this is done, the warning on the ``Area2D`` node will disappear, as it now has a shape assigned and can interact with other objects. Make sure to save the scene again after these changes.