Skip to content

Commit 3fa81e2

Browse files
authored
Merge pull request #7234 from Vennnot/patch-1
Updated with autoplay mention
2 parents 97fc78b + 78c8777 commit 3fa81e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

getting_started/first_3d_game/09.adding_animations.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,12 @@ node structure, you can copy them to different scenes.
259259
For example, both the ``Mob`` and the ``Player`` scenes have a ``Pivot`` and a
260260
``Character`` node, so we can reuse animations between them.
261261

262-
Open the ``Player.tscn`` scene, select the ``AnimationPlayer`` node and open the "float" animation.
263-
Next, click on **Animation > Copy**. Then open ``Mob.tscn`` and open its animation
264-
player. Click **Animation > Paste**. That's it; all monsters will now play the float
265-
animation.
262+
Open the *Player* scene, select the AnimationPlayer node and open the "float"
263+
animation. Next, click on **Animation > Copy**. Then open ``Mob.tscn``,
264+
create an AnimationPlayer child node and select it. Click **Animation > Paste**
265+
and make sure that the button with an "A+" icon (Autoplay on Load) and the
266+
looping arrows (Animation looping) are also turned on in the animation editor
267+
in the bottom panel. That's it; all monsters will now play the float animation.
266268

267269
We can change the playback speed based on the creature's ``random_speed``. Open
268270
the *Mob*'s script and at the end of the ``initialize()`` function, add the

0 commit comments

Comments
 (0)