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.
Return the name of the next animation in the queue.
</description>
</method>
<methodname="animation_set_next">
<returntype="void">
</return>
<argumentindex="0"name="anim_from"type="String">
</argument>
<argumentindex="1"name="anim_to"type="String">
</argument>
<description>
Set the name of an animation that will be played after.
</description>
</method>
<methodname="clear_caches">
<returntype="void">
</return>
<description>
The animation player creates caches for faster access to the nodes it will animate. However, if a specific node is removed, it may not notice it, so clear_caches will force the player to search for the nodes again.
Play a given animation by the animation name. Custom speed and blend times can be set. If custom speed is negative (-1), 'from_end' being true can play the animation backwards.
Seek the animation to a given position in time (in seconds). If 'update' is true, the animation will be updated too, otherwise it will be updated at process time.
</description>
</method>
<methodname="set_active">
<returntype="void">
</return>
<argumentindex="0"name="active"type="bool">
</argument>
<description>
Set the player as active (playing). If false, it will do nothing.
Set the mode in which the animation player processes. By default, it processes on idle time (framerate dependent), but using fixed time works well for animating static collision bodies in 2D and 3D. See enum ANIMATION_PROCESS_*.
</description>
</method>
<methodname="set_autoplay">
<returntype="void">
</return>
<argumentindex="0"name="name"type="String">
</argument>
<description>
Set the name of the animation that will be automatically played when the scene is loaded.
</description>
</method>
<methodname="set_blend_time">
<returntype="void">
</return>
<argumentindex="0"name="anim_from"type="String">
</argument>
<argumentindex="1"name="anim_to"type="String">
</argument>
<argumentindex="2"name="sec"type="float">
</argument>
<description>
Specify a blend time (in seconds) between two animations, referenced by their names.
</description>
</method>
<methodname="set_current_animation">
<returntype="void">
</return>
<argumentindex="0"name="anim"type="String">
</argument>
<description>
Set the current animation (even if no playback occurs). Using set_current_animation() and set_active() are similar to calling play().
</description>
</method>
<methodname="set_default_blend_time">
<returntype="void">
</return>
<argumentindex="0"name="sec"type="float">
</argument>
<description>
Set the default blend time between animations.
</description>
</method>
<methodname="set_root">
<returntype="void">
</return>
<argumentindex="0"name="path"type="NodePath">
</argument>
<description>
AnimationPlayer resolves animation track paths from this node (which is relative to itself), by default root is "..", but it can be changed.
</description>
</method>
<methodname="set_speed_scale">
<returntype="void">
</return>
<argumentindex="0"name="speed"type="float">
</argument>
<description>
Set a speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [i]1[/i] (no scaling).