Skip to content

Commit

Permalink
Improve explenation for Trigger and Capture update modes (godotengine…
Browse files Browse the repository at this point in the history
…#5476)

Co-authored-by: Hugo Locurcio <[email protected]>
  • Loading branch information
skyace65 and Calinou authored Dec 27, 2021
1 parent 3dc8f58 commit 095aacc
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tutorials/animation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,17 @@ mode, track interpolation, and loop mode.
The update mode of a track tells Godot when to update the property
values. This can be:

- Continuous: Update the property on each frame
- Discrete: Only update the property on keyframes
- Trigger: Only update the property on keyframes or triggers
- Capture: Remember the current value of the property, and blend it with the
first animation key
- **Continuous:** Update the property on each frame
- **Discrete:** Only update the property on keyframes
- **Trigger:** Only update the property on keyframes or triggers.
Triggers are a type of keyframe used by the
``current_animation`` property of a :ref:`class_AnimationPlayer`,
and Animation Playback tracks.
- **Capture:** if the first keyframe's time is greater than ``0.0``, the
current value of the property will be remembered and
will be blended with the first animation key. For example, you
could use the Capture mode to move a node that's located anywhere
to a specific location.

.. figure:: img/animation_track_rate.png
:alt: Track mode
Expand Down

0 comments on commit 095aacc

Please sign in to comment.