|
@@ -634,7 +634,7 @@ choose one of the three animation types:
|
|
|
|
|
|
First, we get the list of animation names from the AnimatedSprite's ``frames``
|
|
|
property. This returns an Array containing all three animation names:
|
|
|
-``["walk", "swim", "fly]``.
|
|
|
+``["walk", "swim", "fly"]``.
|
|
|
|
|
|
We then need to pick a random number between ``0`` and ``2`` to select one of these
|
|
|
names from the list (array indices start at ``0``). ``randi() % n`` selects a
|