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

Tween chain won't start the next one. #123

Closed
gmpassos opened this issue Feb 19, 2014 · 0 comments · Fixed by #128
Closed

Tween chain won't start the next one. #123

gmpassos opened this issue Feb 19, 2014 · 0 comments · Fixed by #128

Comments

@gmpassos
Copy link

When creating a chain of Tween objects, dart can't start the next one:

CODE:

TWEEN.Tween tween0 = new TWEEN.Tween(obj)
..to( { "x": x, "y": y }, duration ) ;

TWEEN.Tween tween1 = new TWEEN.Tween(obj)
..to( { "x": 0, "y": 0 }, duration ) ;

tween0.chain( [ tween1 ] ) ;
tween0.start() ;

The problem is that Tween.update calls:

// num time
t.start(time) ;

But the method definition for start is:

start( {num time} ) 

So, the call should be:

t.start(time: time) ;
nelsonsilva added a commit that referenced this issue Dec 1, 2014
Tween chaining now possible, fixes #123.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant