randomcocos2d-iphoneccparticlesystem

Cocos2d Particle with Multiple or Random Texture


I want to do what the title says.

I have a snow particles setup. Works fine. But I'd like to have multiple textures for it PER EMITTER.

Is this possible or do I just create multiple emitters?


Solution

  • Use multiple emitters. Cocos2d's particle system only supports a single texture per emitter.

    In fact if I remember correctly a particle system emitter always uses a single texture in general, and effects using multiple textures always use multiple emitters. Clever emitters can use a texture atlas though and set each particle's texture frame, but again that's not supported by cocos2d.