class_animationplayer.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AnimationPlayer.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AnimationPlayer:
  6. AnimationPlayer
  7. ===============
  8. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Container and player of :ref:`Animation<class_Animation>` resources.
  13. Properties
  14. ----------
  15. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  16. | :ref:`String<class_String>` | :ref:`assigned_animation<class_AnimationPlayer_property_assigned_animation>` | |
  17. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  18. | :ref:`String<class_String>` | :ref:`autoplay<class_AnimationPlayer_property_autoplay>` | "" |
  19. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  20. | :ref:`String<class_String>` | :ref:`current_animation<class_AnimationPlayer_property_current_animation>` | "" |
  21. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  22. | :ref:`float<class_float>` | :ref:`current_animation_length<class_AnimationPlayer_property_current_animation_length>` | |
  23. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  24. | :ref:`float<class_float>` | :ref:`current_animation_position<class_AnimationPlayer_property_current_animation_position>` | |
  25. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  26. | :ref:`AnimationMethodCallMode<enum_AnimationPlayer_AnimationMethodCallMode>` | :ref:`method_call_mode<class_AnimationPlayer_property_method_call_mode>` | 0 |
  27. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  28. | :ref:`bool<class_bool>` | :ref:`playback_active<class_AnimationPlayer_property_playback_active>` | |
  29. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  30. | :ref:`float<class_float>` | :ref:`playback_default_blend_time<class_AnimationPlayer_property_playback_default_blend_time>` | 0.0 |
  31. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  32. | :ref:`AnimationProcessMode<enum_AnimationPlayer_AnimationProcessMode>` | :ref:`playback_process_mode<class_AnimationPlayer_property_playback_process_mode>` | 1 |
  33. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  34. | :ref:`float<class_float>` | :ref:`playback_speed<class_AnimationPlayer_property_playback_speed>` | 1.0 |
  35. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  36. | :ref:`NodePath<class_NodePath>` | :ref:`root_node<class_AnimationPlayer_property_root_node>` | NodePath("..") |
  37. +------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+----------------+
  38. Methods
  39. -------
  40. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`add_animation<class_AnimationPlayer_method_add_animation>` **(** :ref:`String<class_String>` name, :ref:`Animation<class_Animation>` animation **)** |
  42. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | void | :ref:`advance<class_AnimationPlayer_method_advance>` **(** :ref:`float<class_float>` delta **)** |
  44. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`String<class_String>` | :ref:`animation_get_next<class_AnimationPlayer_method_animation_get_next>` **(** :ref:`String<class_String>` anim_from **)** const |
  46. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`animation_set_next<class_AnimationPlayer_method_animation_set_next>` **(** :ref:`String<class_String>` anim_from, :ref:`String<class_String>` anim_to **)** |
  48. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | void | :ref:`clear_caches<class_AnimationPlayer_method_clear_caches>` **(** **)** |
  50. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | void | :ref:`clear_queue<class_AnimationPlayer_method_clear_queue>` **(** **)** |
  52. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`String<class_String>` | :ref:`find_animation<class_AnimationPlayer_method_find_animation>` **(** :ref:`Animation<class_Animation>` animation **)** const |
  54. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`Animation<class_Animation>` | :ref:`get_animation<class_AnimationPlayer_method_get_animation>` **(** :ref:`String<class_String>` name **)** const |
  56. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`PoolStringArray<class_PoolStringArray>` | :ref:`get_animation_list<class_AnimationPlayer_method_get_animation_list>` **(** **)** const |
  58. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`float<class_float>` | :ref:`get_blend_time<class_AnimationPlayer_method_get_blend_time>` **(** :ref:`String<class_String>` anim_from, :ref:`String<class_String>` anim_to **)** const |
  60. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`float<class_float>` | :ref:`get_playing_speed<class_AnimationPlayer_method_get_playing_speed>` **(** **)** const |
  62. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`PoolStringArray<class_PoolStringArray>` | :ref:`get_queue<class_AnimationPlayer_method_get_queue>` **(** **)** |
  64. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`bool<class_bool>` | :ref:`has_animation<class_AnimationPlayer_method_has_animation>` **(** :ref:`String<class_String>` name **)** const |
  66. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`bool<class_bool>` | :ref:`is_playing<class_AnimationPlayer_method_is_playing>` **(** **)** const |
  68. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`play<class_AnimationPlayer_method_play>` **(** :ref:`String<class_String>` name="", :ref:`float<class_float>` custom_blend=-1, :ref:`float<class_float>` custom_speed=1.0, :ref:`bool<class_bool>` from_end=false **)** |
  70. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`play_backwards<class_AnimationPlayer_method_play_backwards>` **(** :ref:`String<class_String>` name="", :ref:`float<class_float>` custom_blend=-1 **)** |
  72. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`queue<class_AnimationPlayer_method_queue>` **(** :ref:`String<class_String>` name **)** |
  74. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`remove_animation<class_AnimationPlayer_method_remove_animation>` **(** :ref:`String<class_String>` name **)** |
  76. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`rename_animation<class_AnimationPlayer_method_rename_animation>` **(** :ref:`String<class_String>` name, :ref:`String<class_String>` newname **)** |
  78. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`seek<class_AnimationPlayer_method_seek>` **(** :ref:`float<class_float>` seconds, :ref:`bool<class_bool>` update=false **)** |
  80. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`set_blend_time<class_AnimationPlayer_method_set_blend_time>` **(** :ref:`String<class_String>` anim_from, :ref:`String<class_String>` anim_to, :ref:`float<class_float>` sec **)** |
  82. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`stop<class_AnimationPlayer_method_stop>` **(** :ref:`bool<class_bool>` reset=true **)** |
  84. +-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. Signals
  86. -------
  87. .. _class_AnimationPlayer_signal_animation_changed:
  88. - **animation_changed** **(** :ref:`String<class_String>` old_name, :ref:`String<class_String>` new_name **)**
  89. If the currently being played animation changes, this signal will notify of such change.
  90. .. _class_AnimationPlayer_signal_animation_finished:
  91. - **animation_finished** **(** :ref:`String<class_String>` anim_name **)**
  92. Notifies when an animation finished playing.
  93. .. _class_AnimationPlayer_signal_animation_started:
  94. - **animation_started** **(** :ref:`String<class_String>` anim_name **)**
  95. Notifies when an animation starts playing.
  96. .. _class_AnimationPlayer_signal_caches_cleared:
  97. - **caches_cleared** **(** **)**
  98. Notifies when the caches have been cleared, either automatically, or manually via :ref:`clear_caches<class_AnimationPlayer_method_clear_caches>`.
  99. Enumerations
  100. ------------
  101. .. _enum_AnimationPlayer_AnimationProcessMode:
  102. .. _class_AnimationPlayer_constant_ANIMATION_PROCESS_PHYSICS:
  103. .. _class_AnimationPlayer_constant_ANIMATION_PROCESS_IDLE:
  104. .. _class_AnimationPlayer_constant_ANIMATION_PROCESS_MANUAL:
  105. enum **AnimationProcessMode**:
  106. - **ANIMATION_PROCESS_PHYSICS** = **0** --- Process animation during the physics process. This is especially useful when animating physics bodies.
  107. - **ANIMATION_PROCESS_IDLE** = **1** --- Process animation during the idle process.
  108. - **ANIMATION_PROCESS_MANUAL** = **2** --- Do not process animation. Use :ref:`advance<class_AnimationPlayer_method_advance>` to process the animation manually.
  109. .. _enum_AnimationPlayer_AnimationMethodCallMode:
  110. .. _class_AnimationPlayer_constant_ANIMATION_METHOD_CALL_DEFERRED:
  111. .. _class_AnimationPlayer_constant_ANIMATION_METHOD_CALL_IMMEDIATE:
  112. enum **AnimationMethodCallMode**:
  113. - **ANIMATION_METHOD_CALL_DEFERRED** = **0** --- Batch method calls during the animation process, then do the calls after events are processed. This avoids bugs involving deleting nodes or modifying the AnimationPlayer while playing.
  114. - **ANIMATION_METHOD_CALL_IMMEDIATE** = **1** --- Make method calls immediately when reached in the animation.
  115. Description
  116. -----------
  117. An animation player is used for general-purpose playback of :ref:`Animation<class_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.
  118. Tutorials
  119. ---------
  120. - :doc:`../getting_started/step_by_step/animations`
  121. - :doc:`../tutorials/animation/index`
  122. Property Descriptions
  123. ---------------------
  124. .. _class_AnimationPlayer_property_assigned_animation:
  125. - :ref:`String<class_String>` **assigned_animation**
  126. +----------+-------------------------------+
  127. | *Setter* | set_assigned_animation(value) |
  128. +----------+-------------------------------+
  129. | *Getter* | get_assigned_animation() |
  130. +----------+-------------------------------+
  131. If playing, the current animation; otherwise, the animation last played. When set, would change the animation, but would not play it unless currently playing. See also :ref:`current_animation<class_AnimationPlayer_property_current_animation>`.
  132. .. _class_AnimationPlayer_property_autoplay:
  133. - :ref:`String<class_String>` **autoplay**
  134. +-----------+---------------------+
  135. | *Default* | "" |
  136. +-----------+---------------------+
  137. | *Setter* | set_autoplay(value) |
  138. +-----------+---------------------+
  139. | *Getter* | get_autoplay() |
  140. +-----------+---------------------+
  141. The name of the animation to play when the scene loads.
  142. .. _class_AnimationPlayer_property_current_animation:
  143. - :ref:`String<class_String>` **current_animation**
  144. +-----------+------------------------------+
  145. | *Default* | "" |
  146. +-----------+------------------------------+
  147. | *Setter* | set_current_animation(value) |
  148. +-----------+------------------------------+
  149. | *Getter* | get_current_animation() |
  150. +-----------+------------------------------+
  151. The name of the current animation, "" if not playing anything. When being set, does not restart the animation. See also :ref:`play<class_AnimationPlayer_method_play>`.
  152. .. _class_AnimationPlayer_property_current_animation_length:
  153. - :ref:`float<class_float>` **current_animation_length**
  154. +----------+--------------------------------+
  155. | *Getter* | get_current_animation_length() |
  156. +----------+--------------------------------+
  157. The length (in seconds) of the currently being played animation.
  158. .. _class_AnimationPlayer_property_current_animation_position:
  159. - :ref:`float<class_float>` **current_animation_position**
  160. +----------+----------------------------------+
  161. | *Getter* | get_current_animation_position() |
  162. +----------+----------------------------------+
  163. The position (in seconds) of the currently playing animation.
  164. .. _class_AnimationPlayer_property_method_call_mode:
  165. - :ref:`AnimationMethodCallMode<enum_AnimationPlayer_AnimationMethodCallMode>` **method_call_mode**
  166. +-----------+-----------------------------+
  167. | *Default* | 0 |
  168. +-----------+-----------------------------+
  169. | *Setter* | set_method_call_mode(value) |
  170. +-----------+-----------------------------+
  171. | *Getter* | get_method_call_mode() |
  172. +-----------+-----------------------------+
  173. The call mode to use for Call Method tracks.
  174. .. _class_AnimationPlayer_property_playback_active:
  175. - :ref:`bool<class_bool>` **playback_active**
  176. +----------+-------------------+
  177. | *Setter* | set_active(value) |
  178. +----------+-------------------+
  179. | *Getter* | is_active() |
  180. +----------+-------------------+
  181. If ``true``, updates animations in response to process-related notifications.
  182. .. _class_AnimationPlayer_property_playback_default_blend_time:
  183. - :ref:`float<class_float>` **playback_default_blend_time**
  184. +-----------+-------------------------------+
  185. | *Default* | 0.0 |
  186. +-----------+-------------------------------+
  187. | *Setter* | set_default_blend_time(value) |
  188. +-----------+-------------------------------+
  189. | *Getter* | get_default_blend_time() |
  190. +-----------+-------------------------------+
  191. The default time in which to blend animations. Ranges from 0 to 4096 with 0.01 precision.
  192. .. _class_AnimationPlayer_property_playback_process_mode:
  193. - :ref:`AnimationProcessMode<enum_AnimationPlayer_AnimationProcessMode>` **playback_process_mode**
  194. +-----------+-----------------------------------+
  195. | *Default* | 1 |
  196. +-----------+-----------------------------------+
  197. | *Setter* | set_animation_process_mode(value) |
  198. +-----------+-----------------------------------+
  199. | *Getter* | get_animation_process_mode() |
  200. +-----------+-----------------------------------+
  201. The process notification in which to update animations.
  202. .. _class_AnimationPlayer_property_playback_speed:
  203. - :ref:`float<class_float>` **playback_speed**
  204. +-----------+------------------------+
  205. | *Default* | 1.0 |
  206. +-----------+------------------------+
  207. | *Setter* | set_speed_scale(value) |
  208. +-----------+------------------------+
  209. | *Getter* | get_speed_scale() |
  210. +-----------+------------------------+
  211. The speed scaling ratio. For instance, if this value is 1, then the animation plays at normal speed. If it's 0.5, then it plays at half speed. If it's 2, then it plays at double speed.
  212. .. _class_AnimationPlayer_property_root_node:
  213. - :ref:`NodePath<class_NodePath>` **root_node**
  214. +-----------+-----------------+
  215. | *Default* | NodePath("..") |
  216. +-----------+-----------------+
  217. | *Setter* | set_root(value) |
  218. +-----------+-----------------+
  219. | *Getter* | get_root() |
  220. +-----------+-----------------+
  221. The node from which node path references will travel.
  222. Method Descriptions
  223. -------------------
  224. .. _class_AnimationPlayer_method_add_animation:
  225. - :ref:`Error<enum_@GlobalScope_Error>` **add_animation** **(** :ref:`String<class_String>` name, :ref:`Animation<class_Animation>` animation **)**
  226. Adds ``animation`` to the player accessible with the key ``name``.
  227. .. _class_AnimationPlayer_method_advance:
  228. - void **advance** **(** :ref:`float<class_float>` delta **)**
  229. Shifts position in the animation timeline. Delta is the time in seconds to shift. Events between the current frame and ``delta`` are handled.
  230. .. _class_AnimationPlayer_method_animation_get_next:
  231. - :ref:`String<class_String>` **animation_get_next** **(** :ref:`String<class_String>` anim_from **)** const
  232. Returns the name of the next animation in the queue.
  233. .. _class_AnimationPlayer_method_animation_set_next:
  234. - void **animation_set_next** **(** :ref:`String<class_String>` anim_from, :ref:`String<class_String>` anim_to **)**
  235. Triggers the ``anim_to`` animation when the ``anim_from`` animation completes.
  236. .. _class_AnimationPlayer_method_clear_caches:
  237. - void **clear_caches** **(** **)**
  238. ``AnimationPlayer`` caches animated nodes. It may not notice if a node disappears; :ref:`clear_caches<class_AnimationPlayer_method_clear_caches>` forces it to update the cache again.
  239. .. _class_AnimationPlayer_method_clear_queue:
  240. - void **clear_queue** **(** **)**
  241. Clears all queued, unplayed animations.
  242. .. _class_AnimationPlayer_method_find_animation:
  243. - :ref:`String<class_String>` **find_animation** **(** :ref:`Animation<class_Animation>` animation **)** const
  244. Returns the name of ``animation`` or an empty string if not found.
  245. .. _class_AnimationPlayer_method_get_animation:
  246. - :ref:`Animation<class_Animation>` **get_animation** **(** :ref:`String<class_String>` name **)** const
  247. Returns the :ref:`Animation<class_Animation>` with key ``name`` or ``null`` if not found.
  248. .. _class_AnimationPlayer_method_get_animation_list:
  249. - :ref:`PoolStringArray<class_PoolStringArray>` **get_animation_list** **(** **)** const
  250. Returns the list of stored animation names.
  251. .. _class_AnimationPlayer_method_get_blend_time:
  252. - :ref:`float<class_float>` **get_blend_time** **(** :ref:`String<class_String>` anim_from, :ref:`String<class_String>` anim_to **)** const
  253. Gets the blend time (in seconds) between two animations, referenced by their names.
  254. .. _class_AnimationPlayer_method_get_playing_speed:
  255. - :ref:`float<class_float>` **get_playing_speed** **(** **)** const
  256. Gets the actual playing speed of current animation or 0 if not playing. This speed is the ``playback_speed`` property multiplied by ``custom_speed`` argument specified when calling the ``play`` method.
  257. .. _class_AnimationPlayer_method_get_queue:
  258. - :ref:`PoolStringArray<class_PoolStringArray>` **get_queue** **(** **)**
  259. Returns a list of the animation names that are currently queued to play.
  260. .. _class_AnimationPlayer_method_has_animation:
  261. - :ref:`bool<class_bool>` **has_animation** **(** :ref:`String<class_String>` name **)** const
  262. Returns ``true`` if the ``AnimationPlayer`` stores an :ref:`Animation<class_Animation>` with key ``name``.
  263. .. _class_AnimationPlayer_method_is_playing:
  264. - :ref:`bool<class_bool>` **is_playing** **(** **)** const
  265. Returns ``true`` if playing an animation.
  266. .. _class_AnimationPlayer_method_play:
  267. - void **play** **(** :ref:`String<class_String>` name="", :ref:`float<class_float>` custom_blend=-1, :ref:`float<class_float>` custom_speed=1.0, :ref:`bool<class_bool>` from_end=false **)**
  268. Plays the animation with key ``name``. Custom speed and blend times can be set. If ``custom_speed`` is negative and ``from_end`` is ``true``, the animation will play backwards.
  269. If the animation has been paused by :ref:`stop<class_AnimationPlayer_method_stop>`, it will be resumed. Calling :ref:`play<class_AnimationPlayer_method_play>` without arguments will also resume the animation.
  270. .. _class_AnimationPlayer_method_play_backwards:
  271. - void **play_backwards** **(** :ref:`String<class_String>` name="", :ref:`float<class_float>` custom_blend=-1 **)**
  272. Plays the animation with key ``name`` in reverse.
  273. If the animation has been paused by ``stop(true)``, it will be resumed backwards. Calling ``play_backwards()`` without arguments will also resume the animation backwards.
  274. .. _class_AnimationPlayer_method_queue:
  275. - void **queue** **(** :ref:`String<class_String>` name **)**
  276. Queues an animation for playback once the current one is done.
  277. **Note:** If a looped animation is currently playing, the queued animation will never play unless the looped animation is stopped somehow.
  278. .. _class_AnimationPlayer_method_remove_animation:
  279. - void **remove_animation** **(** :ref:`String<class_String>` name **)**
  280. Removes the animation with key ``name``.
  281. .. _class_AnimationPlayer_method_rename_animation:
  282. - void **rename_animation** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` newname **)**
  283. Renames an existing animation with key ``name`` to ``newname``.
  284. .. _class_AnimationPlayer_method_seek:
  285. - void **seek** **(** :ref:`float<class_float>` seconds, :ref:`bool<class_bool>` update=false **)**
  286. Seeks the animation to the ``seconds`` point in time (in seconds). If ``update`` is ``true``, the animation updates too, otherwise it updates at process time. Events between the current frame and ``seconds`` are skipped.
  287. .. _class_AnimationPlayer_method_set_blend_time:
  288. - void **set_blend_time** **(** :ref:`String<class_String>` anim_from, :ref:`String<class_String>` anim_to, :ref:`float<class_float>` sec **)**
  289. Specifies a blend time (in seconds) between two animations, referenced by their names.
  290. .. _class_AnimationPlayer_method_stop:
  291. - void **stop** **(** :ref:`bool<class_bool>` reset=true **)**
  292. Stops the currently playing animation. If ``reset`` is ``true``, the animation position is reset to ``0`` and the playback speed is reset to ``1.0``.
  293. If ``reset`` is ``false``, then calling :ref:`play<class_AnimationPlayer_method_play>` without arguments or ``play("same_as_before")`` will resume the animation. Works the same for the :ref:`play_backwards<class_AnimationPlayer_method_play_backwards>`.