Multiple ParticleSystems in cocos2d
        Posted  
        
            by Mattias Akerman
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mattias Akerman
        
        
        
        Published on 2009-07-16T15:12:10Z
        Indexed on 
            2010/04/27
            17:03 UTC
        
        
        Read the original article
        Hit count: 403
        
I wonder about what road I should go with ParticleSystem. In this particular case I want to create 1-20 small explosions at the same time but with different positions. Right now I'm creating a new ParticleSystem for each explosion and then release it, but of course this is very punishing to the performance.
My question is: Is there a way to create one ParticleSystem with multiple emitting sources. If not should I create an array of ParticleSystem in init and then use a free one when an explosion is needed? Or is there another approach I haven't thought of?
© Stack Overflow or respective owner