Starling-Framework icon indicating copy to clipboard operation
Starling-Framework copied to clipboard

Timelines - Tween containers

Open b005t3r opened this issue 8 years ago • 17 comments

Chaining multiple tweens, so each one starts after the previous one finished is currently quite fiddly - you basically have to start a new tween from the old one's onComplete handler - not very convenient. It's also currently impossible to create a more complex animations/sequences and play them back and forth, change their transition, etc.

My proposition is to introduce a container class for storing tweens (and other containers) - a Timeline class. They have something like that in this Java lib: http://www.aurelienribon.com/blog/projects/universal-tween-engine/

It's really a must have if you plan to do any more complex animations, so I think this would make a great addition to Starling's tweens.

b005t3r avatar Oct 12 '16 07:10 b005t3r

Look at https://github.com/mayakwd/as3-eaze-tween

pSi-X avatar Oct 12 '16 15:10 pSi-X

Yeah, but the problem is this is not a part of Starling and Starling's tweening engine is already pretty solid, it just needs timelines.

b005t3r avatar Oct 12 '16 15:10 b005t3r

Thanks for the suggestion! I can totally see the sense in that. Anybody who wants do see this, please vote!

BTW, just for reference: it's by far not as elaborate, but there actually is a way you can chain tweens together in the current API: via Tween.nextTween.

PrimaryFeather avatar Oct 13 '16 06:10 PrimaryFeather

Tween.nextTween() is OK, but it's not as functional as timelines. It's, for instance, much more inconvenient to pause a complex animation created with nextTweens than to pause a timeline-based one.

If you need any more references, I created something like that some time ago (based on your Tweens), but it's still inconvenient to use, if it's not a part of Starling:

https://github.com/b005t3r/Stork-Extension-Tween/blob/master/extension/src/stork/tween/TimelineNode.as

b005t3r avatar Oct 13 '16 07:10 b005t3r

Thanks, I will definitely take a look at that! :smile:

PrimaryFeather avatar Oct 13 '16 08:10 PrimaryFeather

vote!

denisgl7 avatar Jul 17 '17 22:07 denisgl7

Daniel Do you consider adding this function in the future?

denisgl7 avatar Jul 22 '17 11:07 denisgl7

I'm definitely considering that, yes! I can totally see the use of it. As for the priority — anyone, please just keep voting! :smile:

PrimaryFeather avatar Jul 24 '17 07:07 PrimaryFeather

vote vote

naderalbes avatar Jan 24 '18 17:01 naderalbes

Any update on Tween Timeline, executing multiple tweens in a sequence?

VladimirCores avatar May 05 '18 20:05 VladimirCores

Not yet, sorry! But I'll take this as a "vote"! :wink:

PrimaryFeather avatar May 13 '18 12:05 PrimaryFeather

here's my vote! Currently I just have to use TimelineMax...

jimmymjing avatar Dec 21 '18 16:12 jimmymjing

Vote Vote Vote!

Shaunmax avatar Aug 10 '19 08:08 Shaunmax

Vote!)

Mintonist avatar Sep 14 '20 15:09 Mintonist

vote!

chachawu avatar Sep 15 '20 08:09 chachawu

+1

Adolio avatar Sep 15 '20 08:09 Adolio

Vote

denisgl7 avatar Sep 25 '20 08:09 denisgl7