hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

Inconsistencies when hiding actor after a end of a behavior #155

Open arnuschky opened 10 years ago

arnuschky commented 10 years ago

CAAT seems to require that actors are rendered (setVisible / setFrameTime) well beyond the end of the last behavior.

If you call setVisible(false) directly at or shortly after the end of an animation, CAAT will get into an inconsistent state:

actorBehavior.setFrameTime(scene.time, 1000);
actor.setFrameTime(scene.time, 1000);

causes the problem, while

actorBehavior.setFrameTime(scene.time, 1000);
actor.setFrameTime(scene.time, 1010);

seems to work fine. (Same result when using a timer and setVisible(false))