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

Timelines - Tween containers #914

Open
b005t3r opened this issue Oct 12, 2016 · 17 comments
Open

Timelines - Tween containers #914

b005t3r opened this issue Oct 12, 2016 · 17 comments
Labels

Comments

@b005t3r
Copy link

b005t3r commented Oct 12, 2016

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.

@pSi-X
Copy link

pSi-X commented Oct 12, 2016

@b005t3r
Copy link
Author

b005t3r commented Oct 12, 2016

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.

@PrimaryFeather
Copy link
Contributor

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.

@b005t3r
Copy link
Author

b005t3r commented Oct 13, 2016

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

@PrimaryFeather
Copy link
Contributor

Thanks, I will definitely take a look at that! 😄

@denisgl7
Copy link

vote!

@denisgl7
Copy link

Daniel
Do you consider adding this function in the future?

@PrimaryFeather
Copy link
Contributor

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

@naderalbes
Copy link

vote vote

@VladimirCores
Copy link

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

@PrimaryFeather
Copy link
Contributor

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

@jimmymjing
Copy link

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

@Shaunmax
Copy link

Vote Vote Vote!

@Mintonist
Copy link

Vote!)

@chachawu
Copy link

vote!

@Adolio
Copy link
Contributor

Adolio commented Sep 15, 2020

+1

@denisgl7
Copy link

Vote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests