Hi Forum,
I need your help to tackle a problem. I want to build a timeline which depends on the state of my app. The thing is, that the timeline also changes the state of the app.
The linked codepen shows my problem. This is a very simplified version of it. It happens a lot more, but I think if I can solve this I can resolve the rest, too.
I already identified the Problem:
timeline.addCallback(score, null, [symbol]);
is called when the timline reaches the point, where this callback is inserted, but
timeline.add(scoreTween(symbol));
is created at the begin of the timeline (where all scores are 0)
I hope someone knows a better approach, as I am sure, this might not be the right way to do that.
If I add scoreTween as a callback i have the problem, that it tweens, but since callbacks have a zero duration all following timelines are inserted at the exact same place.
I understand why all this is happening, but I can't find a workaround, that works.
Hope you can help me out,
-Jens