Skip to content

Commit 78c8777

Browse files
authored
Updated with autoplay mention
Copy of this stale PR: godotengine#6392 (comment) rebased. Both can be closed now.
1 parent 930ad1f commit 78c8777

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
@@ -257,10 +257,12 @@ node structure, you can copy them to different scenes.
257257
For example, both the ``Mob`` and the ``Player`` scenes have a ``Pivot`` and a
258258
``Character`` node, so we can reuse animations between them.
259259

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

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

0 commit comments

Comments
 (0)