From e04ae8c8bcabfd5f9e66544090f9921bfc15e0ad Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 22 Mar 2022 17:39:01 +0100 Subject: Add get_total_elapsed_time() to Tween --- doc/classes/Tween.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/classes') 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. + + + + 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. + + -- cgit v1.2.3