2
0
shane pope 2 жил өмнө
parent
commit
1981fd404f

+ 2 - 2
getting_started/first_2d_game/04.creating_the_enemy.rst

@@ -117,8 +117,8 @@ and randomly choose one of the three animation types:
     public override void _Ready()
     {
         var animSprite2D = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
-        animSprite2D.Playing = true;
-        string[] mobTypes = animSprite2D.Frames.GetAnimationNames();
+        animSprite2D.Play();
+        string[] mobTypes = animSprite2D.SpriteFrames.GetAnimationNames();
         animSprite2D.Animation = mobTypes[GD.Randi() % mobTypes.Length];
     }