Browse Source

Updated Choose Animations script to match new name (#3588)

Nicholas Ver Halen 5 years ago
parent
commit
3cc988b10b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      getting_started/step_by_step/your_first_game.rst

+ 2 - 2
getting_started/step_by_step/your_first_game.rst

@@ -375,7 +375,7 @@ function:
  .. code-tab:: gdscript GDScript
 
         if velocity.x != 0:
-            $AnimatedSprite.animation = "right"
+            $AnimatedSprite.animation = "walk"
             $AnimatedSprite.flip_v = false
             # See the note below about boolean assignment
             $AnimatedSprite.flip_h = velocity.x < 0
@@ -387,7 +387,7 @@ function:
 
         if (velocity.x != 0)
         {
-            animatedSprite.Animation = "right";
+            animatedSprite.Animation = "walk";
             animatedSprite.FlipV = false;
             // See the note below about boolean assignment
             animatedSprite.FlipH = velocity.x < 0;