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

Animations triggered before a renderable is added to the scene graph do not behave as expected #6

Open
despeset opened this issue Jan 6, 2017 · 0 comments
Labels

Comments

@despeset
Copy link
Owner

despeset commented Jan 6, 2017

var s = new Square({ x: 10, y: 20 });
s.animate({ x: 50, y: 100 }, 10000);
engine.push(s);

In this case, the engine will pause because the created animation doesn't register properly with the engine when initialized. If the last two lines are reversed it works as expected:

engine.push(s);
s.animate({ x: 50, y: 100 }, 10000);

The library should probably throw a warning if you try to animate a renderable like this as it is not intuitive.

@despeset despeset added the bug label Jan 6, 2017
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

1 participant