From 8f9a5db8ffb98fb922ab349b6d674186943a1825 Mon Sep 17 00:00:00 2001 From: Steven Calvert Date: Sun, 17 Jul 2022 09:37:43 -0700 Subject: [PATCH] Change C++ animation name for consistency in Your first 2D game (#5938) --- getting_started/first_2d_game/03.coding_the_player.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/first_2d_game/03.coding_the_player.rst b/getting_started/first_2d_game/03.coding_the_player.rst index 5d5456bb9..9d05cbe6d 100644 --- a/getting_started/first_2d_game/03.coding_the_player.rst +++ b/getting_started/first_2d_game/03.coding_the_player.rst @@ -361,7 +361,7 @@ movement. Let's place this code at the end of the ``_process()`` function: .. code-tab:: cpp if (velocity.x != 0) { - _animated_sprite->set_animation("right"); + _animated_sprite->set_animation("walk"); _animated_sprite->set_flip_v(false); // See the note below about boolean assignment. _animated_sprite->set_flip_h(velocity.x < 0);