diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-29 08:08:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 08:08:34 +0100 |
commit | cb3d308f9695a2099fa109c6a29cc8a9e7e58422 (patch) | |
tree | b3928d63c9e8a98a284cda447f27c0d3872cdde4 /doc/classes/Tween.xml | |
parent | 252ec22ff9fc2befd6b120fd40b0e008137a0392 (diff) | |
parent | 038977a985722036d4e2e7f90e0b477225955d80 (diff) |
Merge pull request #57372 from KoBeWi/tween_freeze()
Better handle infinite Tween loops
Diffstat (limited to 'doc/classes/Tween.xml')
-rw-r--r-- | doc/classes/Tween.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Tween.xml b/doc/classes/Tween.xml index 1cba995366..a1b53346d8 100644 --- a/doc/classes/Tween.xml +++ b/doc/classes/Tween.xml @@ -146,7 +146,7 @@ <description> Sets the number of times the tweening sequence will be repeated, i.e. [code]set_loops(2)[/code] will run the animation twice. Calling this method without arguments will make the [Tween] run infinitely, until it is either killed by [method kill] or by freeing bound node, or all the animated objects have been freed (which makes further animation impossible). - [b]Warning:[/b] Make sure to always add some duration/delay when using infinite loops. 0-duration looped animations (e.g. single [CallbackTweener] with no delay) are equivalent to infinite [code]while[/code] loops and will freeze your game. + [b]Warning:[/b] Make sure to always add some duration/delay when using infinite loops. 0-duration looped animations (e.g. single [CallbackTweener] with no delay or [PropertyTweener] with invalid node) are equivalent to infinite [code]while[/code] loops and will freeze your game. If a [Tween]'s lifetime depends on some node, always use [method bind_node]. </description> </method> <method name="set_parallel"> |