summaryrefslogtreecommitdiffstats
path: root/doc/classes/AnimationPlayer.xml
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-31 17:56:03 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-31 18:00:15 +0100
commit810b1341cef475c28c97cc476f54e1199f5c3d2d (patch)
tree8972a74dbdc79918c9ceeb615cc8f01293cf1bed /doc/classes/AnimationPlayer.xml
parent6f092c299e6aff131a9de7df93b10c7683b716e5 (diff)
downloadredot-engine-810b1341cef475c28c97cc476f54e1199f5c3d2d.tar.gz
doc: Add a short AnimationPlayer versus Tween comparison
Many newcomers are confused about which one to choose for animating properties. This should help clarify the situation with regards to AnimationPlayer versus Tween.
Diffstat (limited to 'doc/classes/AnimationPlayer.xml')
-rw-r--r--doc/classes/AnimationPlayer.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/AnimationPlayer.xml b/doc/classes/AnimationPlayer.xml
index 8bc2c34c6d..bb1754b810 100644
--- a/doc/classes/AnimationPlayer.xml
+++ b/doc/classes/AnimationPlayer.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
An animation player is used for general-purpose playback of [Animation] resources. It contains a dictionary of animations (referenced by name) and custom blend times between their transitions. Additionally, animations can be played and blended in different channels.
+ [AnimationPlayer] is more suited than [Tween] for animations where you know the final values in advance. For example, fading a screen in and out is more easily done with an [AnimationPlayer] node thanks to the animation tools provided by the editor. That particular example can also be implemented with a [Tween] node, but it requires doing everything by code.
Updating the target properties of animations occurs at process time.
</description>
<tutorials>