From 900b2e0fdcc12d28a744ae36004b9b2dc7f196d1 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sat, 5 Sep 2020 03:05:30 +0200 Subject: Complete rewrite of Tweens * Tweens were changed from Node to RefCounted. New API is inspired by DOTween. * Tweens are created and managed by SceneTree, similar to SceneTreeTimer, which makes them ultra cheap to use a lot. * Animating with Tweens is done by creating sequences of Tweeners. You create them from code and they autostart by default (fire-and-forget). * There are 4 Tweeners that cover the former Tween functionality: PropertyTweener, IntervalTweener, CallbackTweener and MethodTweener. * The methods were simplified a lot. Long argument lists are replaced with chained calls on Tweens and Tweeners. * Tweeners by default execute in sequence, so it's easy to create complex chained animations. * You can bind a Tween to a node. Tween will be removed automatically when the bound node is freed. --- doc/classes/Tweener.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/classes/Tweener.xml (limited to 'doc/classes/Tweener.xml') diff --git a/doc/classes/Tweener.xml b/doc/classes/Tweener.xml new file mode 100644 index 0000000000..5cd502ced9 --- /dev/null +++ b/doc/classes/Tweener.xml @@ -0,0 +1,22 @@ + + + + Abstract class for all Tweeners used by [Tween]. + + + Tweeners are objects that perform a specific animating task, e.g. interpolating a property or calling a method at a given time. A [Tweener] can't be created manually, you need to use a dedicated method from [Tween] or [Node]. + + + + + + + + + Emited when the [Tweener] has just finished its job. + + + + + + -- cgit v1.2.3