mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
update creating_the_enemy.rst file
Signed-off-by: Saif Kandil <74428638+k0T0z@users.noreply.github.com>
This commit is contained in:
committed by
Max Hilbrunner
parent
ee1ab01f6e
commit
6963d592e3
@@ -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"]``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user