Citrus-Engine icon indicating copy to clipboard operation
Citrus-Engine copied to clipboard

A pooled object doesn't pause its animation

Open gsynuh opened this issue 11 years ago • 0 comments

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

gsynuh avatar Nov 21 '13 21:11 gsynuh