Skip to content

Commit 4fa0275

Browse files
committed
Improved in docs for playing mob animation
1 parent 8596ceb commit 4fa0275

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
@@ -107,7 +107,7 @@ to select one of these animation names at random. Meanwhile, in the C# code, we
107107
between ``0`` and ``2`` to select one of these names from the list (array indices start at ``0``). The
108108
expression ``GD.Randi() % n`` selects a random integer between ``0`` and ``n-1``.
109109

110-
Finally, we call $AnimatedSprite2D.play() to start playing the chosen animation.
110+
Finally, we call ``play()`` to start playing the chosen animation.
111111

112112
The last piece is to make the mobs delete themselves when they leave the screen.
113113
Connect the ``screen_exited()`` signal of the ``VisibleOnScreenNotifier2D`` node

0 commit comments

Comments
 (0)