Citrus-Engine
Citrus-Engine copied to clipboard
A pooled object doesn't pause its animation
code for Box2DObjectPool dispose
if ("pauseAnimation" in bp.view)
bp.view.pauseAnimation(false);
this only works when view is an AnimationSequence or has pauseAnimation method.
what we really want is to call StarlingArt._pauseAnimation(false) to handle every kind of pausing
Additionally :
- return error if the class given to PoolObject is not a CitrusObject or let PoolObject pool anything and extend it to create CitrusPoolObject http://forum.starling-framework.org/topic/object-pooling-1?replies=2#post-50358