Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete rewrite of Tweens #41794

Merged
merged 1 commit into from
Jun 19, 2021
Merged

Commits on Jun 19, 2021

  1. 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.
    KoBeWi committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    900b2e0 View commit details
    Browse the repository at this point in the history