@@ -15,20 +15,20 @@ Node structure
1515
1616To begin, we need to choose a root node for the player object. As a general
1717rule, a scene's root node should reflect the object's desired functionality -
18- what the object *is *. In the upper-left corner, in the "Scene" tab, click the
18+ what the object *is *. In the upper-left corner, in the "Scene" tab, click the
1919"Other Node" button and add an :ref: `Area2D <class_Area2D >` node to the scene.
2020
2121.. image :: img/add_node.webp
2222
23- When you add the ``Area2D `` node, Godot will display the following **warning icon **
23+ When you add the ``Area2D `` node, Godot will display the following **warning icon **
2424next to it in the scene tree:
2525
2626.. image :: img/no_shape_warning.webp
2727
28- This warning tells us that the ``Area2D `` node requires a shape to detect collisions or overlaps.
29- We can **ignore the warning temporarily ** because we will first set up the player's visuals
30- (using an animated sprite). Once the visuals are ready, we will add a collision shape as a child
31- node. This will allow us to accurately size and position the shape based on the sprite’ s appearance.
28+ This warning tells us that the ``Area2D `` node requires a shape to detect collisions or overlaps.
29+ We can **ignore the warning temporarily ** because we will first set up the player's visuals
30+ (using an animated sprite). Once the visuals are ready, we will add a collision shape as a child
31+ node. This will allow us to accurately size and position the shape based on the sprite' s appearance.
3232
3333
3434With ``Area2D `` we can detect objects that overlap or run into the player.
@@ -44,8 +44,8 @@ node is clicked in 2D and 3D view."
4444
4545.. image :: img/lock_children.webp
4646
47- Save the scene. Click Scene - > Save, or press :kbd: `Ctrl + S ` on Windows/Linux
48- or :kbd: `Cmd + S ` on macOS.
47+ Save the scene as `` player.tscn ``. Click ** Scene > Save ** , or press :kbd: `Ctrl + S `
48+ on Windows/Linux or :kbd: `Cmd + S ` on macOS.
4949
5050.. note :: For this project, we will be following the Godot naming conventions.
5151
@@ -68,7 +68,7 @@ Click on the ``Player`` node and add (:kbd:`Ctrl + A` on Windows/Linux or
6868appearance and animations for our player. Notice that there is a warning symbol
6969next to the node. An ``AnimatedSprite2D `` requires a :ref: `SpriteFrames
7070<class_SpriteFrames>` resource, which is a list of the animations it can
71- display. Make sure ``AnimatedSprite2D `` is selected and then find the ``Sprite Frames `` property under
71+ display. Make sure ``AnimatedSprite2D `` is selected and then find the ``Sprite Frames `` property under
7272the ``Animation `` section in the Inspector and click "[empty]" -> "New SpriteFrames":
7373
7474.. image :: img/new_spriteframes.webp
@@ -110,7 +110,7 @@ When you're finished, your ``Player`` scene should look like this:
110110
111111.. image :: img/player_scene_nodes.webp
112112
113- Once this is done, the warning on the ``Area2D `` node will disappear, as it now has
113+ Once this is done, the warning on the ``Area2D `` node will disappear, as it now has
114114a shape assigned and can interact with other objects.
115115
116116Make sure to save the scene again after these changes.
0 commit comments