summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-02 00:31:40 +0200
committerGitHub <noreply@github.com>2022-04-02 00:31:40 +0200
commit6bbd4def4597beb240cbe75bf8e585990fcf33f3 (patch)
tree450eb8cffad43253d316f3ff7202e80c830dbcad /doc
parent9c5818d21219cebb38350a477a4a6c09b1197785 (diff)
parente04ae8c8bcabfd5f9e66544090f9921bfc15e0ad (diff)
Merge pull request #59415 from KoBeWi/tween_time()
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Tween.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Tween.xml b/doc/classes/Tween.xml
index 2c152410ce..72f32f39c2 100644
--- a/doc/classes/Tween.xml
+++ b/doc/classes/Tween.xml
@@ -72,6 +72,13 @@
[b]Note:[/b] The [Tween] will become invalid after finished, but you can call [method stop] after the step, to keep it and reset.
</description>
</method>
+ <method name="get_total_elapsed_time" qualifiers="const">
+ <return type="float" />
+ <description>
+ Returns the total time in seconds the [Tween] has been animating (i.e. time since it started, not counting pauses etc.). The time is affected by [method set_speed_scale] and [method stop] will reset it to [code]0[/code].
+ [b]Note:[/code] As it results from accumulating frame deltas, the time returned after the [Tween] has finished animating will be slightly greater than the actual [Tween] duration.
+ </description>
+ </method>
<method name="interpolate_value">
<return type="Variant" />
<argument index="0" name="initial_value" type="Variant" />