summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-19 00:07:16 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-19 00:07:16 +0100
commit739cb2d9e1606753e5cf7934f010fad82df55ed1 (patch)
tree2d0d74c160573343f8684bb23904964a58298a92
parentdfcecb77bda85b34c81d43a946e70271842d6ea7 (diff)
parent207bd34aa54072476c5ca07252fed30306002560 (diff)
downloadredot-engine-739cb2d9e1606753e5cf7934f010fad82df55ed1.tar.gz
Merge pull request #79758 from KoBeWi/understandment
Clarify `Tween.set_parallel()`
-rw-r--r--doc/classes/Tween.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/Tween.xml b/doc/classes/Tween.xml
index b265f8ba11..ac16bebecb 100644
--- a/doc/classes/Tween.xml
+++ b/doc/classes/Tween.xml
@@ -237,6 +237,12 @@
<param index="0" name="parallel" type="bool" default="true" />
<description>
If [param parallel] is [code]true[/code], the [Tweener]s appended after this method will by default run simultaneously, as opposed to sequentially.
+ [b]Note:[/b] Just like with [method parallel], the tweener added right before this method will also be part of the parallel step.
+ [codeblock]
+ tween.tween_property(self, "position", Vector2(300, 0), 0.5)
+ tween.set_parallel()
+ tween.tween_property(self, "modulate", Color.GREEN, 0.5) # Runs together with the position tweener.
+ [/codeblock]
</description>
</method>
<method name="set_pause_mode">