alecmce / gaia-tween

Another tweening library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Tweens on same Property

matse4 opened this issue · comments

I want to add 2 PropertyTweenForms to one Tweens with different StartTimes, like alpha to 0 with delay = 0 and alpha to 1 with delay=3000.
When I add them to the Tweens it will create a Tween and bind the PropertyTweenForm, and the second PropertyTweenForm will calculate start=1 range=0 because alpha is at the moment (time=0) 1, but when the tween start alpha will be 0.
Is this somehow possible or do I need to add the second tween after 3000ms and without a delay?

Thanks for the question. I haven't worked on or with GaiaTween for 2 years. I'm happy to take a look, but it will take some time.

Ok, reading through the code it looks like we need to introduce a new concept of starting, so that start values aren't read when the form is bound but at the moment they're first invoked. I'm happy to do that soon, I'm away from my computer for a few days at the moment but can get into it when I get back. Alternatively if you fix it please send a change request. Thanks!

hey, sorry i was on vacation the last few weeks.
I'm happy to here that you have already an idea how to implement this.
I think it would be better if you do this.