浏览代码

Clarify Tween.set_parallel()

kobewi 2 年之前
父节点
当前提交
207bd34aa5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      doc/classes/Tween.xml

+ 6 - 0
doc/classes/Tween.xml

@@ -236,6 +236,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">