Skip to content

Commit 284756e

Browse files
authored
Merge pull request godotengine#8235 from k0T0z/fix-wrong-property-name
Fix wrong property name of ``AnimatedSprite2D``
2 parents 1e920a5 + 8c7824c commit 284756e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting_started/first_2d_game/04.creating_the_enemy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ and randomly choose one of the three animation types:
142142
_animated_sprite->set_animation(mob_types[random->randi() % mob_types.size()]);
143143
}
144144

145-
First, we get the list of animation names from the AnimatedSprite2D's ``frames``
145+
First, we get the list of animation names from the AnimatedSprite2D's ``sprite_frames``
146146
property. This returns an Array containing all three animation names: ``["walk",
147147
"swim", "fly"]``.
148148

0 commit comments

Comments
 (0)