From 8954d16c83206effa5f539fc00de498c4165d728 Mon Sep 17 00:00:00 2001 From: DaMage93 <67731247+DaMage93@users.noreply.github.com> Date: Mon, 9 Oct 2023 05:23:25 -0500 Subject: [PATCH] Update 04.creating_the_enemy.rst - change `frames` to `sprite_frames` --- getting_started/first_2d_game/04.creating_the_enemy.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/first_2d_game/04.creating_the_enemy.rst b/getting_started/first_2d_game/04.creating_the_enemy.rst index 9eeef0773dd..7a790e55609 100644 --- a/getting_started/first_2d_game/04.creating_the_enemy.rst +++ b/getting_started/first_2d_game/04.creating_the_enemy.rst @@ -142,7 +142,7 @@ and randomly choose one of the three animation types: _animated_sprite->set_animation(mob_types[random->randi() % mob_types.size()]); } -First, we get the list of animation names from the AnimatedSprite2D's ``frames`` +First, we get the list of animation names from the AnimatedSprite2D's ``sprite_frames`` property. This returns an Array containing all three animation names: ``["walk", "swim", "fly"]``.