Merge pull request #9844 from choidavid4/master

Added screenshot to first_2d_game/player_scene for clarity
This commit is contained in:
Matthew
2024-09-01 15:21:14 -04:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -61,12 +61,14 @@ appearance and animations for our player. Notice that there is a warning symbol
next to the node. An ``AnimatedSprite2D`` requires a :ref:`SpriteFrames
<class_SpriteFrames>` resource, which is a list of the animations it can
display. To create one, find the ``Sprite Frames`` property under the ``Animation`` tab in the Inspector and click
"[empty]" -> "New SpriteFrames". Click on the ``SpriteFrames`` you just
created to open the "SpriteFrames" panel:
"[empty]" -> "New SpriteFrames":
.. image:: img/new_spriteframes.webp
Click on the ``SpriteFrames`` you just created to open the "SpriteFrames" panel:
.. image:: img/spriteframes_panel.webp
On the left is a list of animations. Click the "default" one and rename it to
"walk". Then click the "Add Animation" button to create a second animation named
"up". Find the player images in the "FileSystem" tab - they're in the ``art``

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB