Clarify Tween.set_parallel()

(cherry picked from commit 207bd34aa5)
This commit is contained in:
kobewi 2023-07-21 20:17:32 +02:00 committed by Rémi Verschelde
parent a24347d041
commit 3c76c89cc7
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 6 additions and 0 deletions

View File

@ -237,6 +237,12 @@
<param index="0" name="parallel" type="bool" default="true" /> <param index="0" name="parallel" type="bool" default="true" />
<description> <description>
If [param parallel] is [code]true[/code], the [Tweener]s appended after this method will by default run simultaneously, as opposed to sequentially. 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> </description>
</method> </method>
<method name="set_pause_mode"> <method name="set_pause_mode">