3

I am upgrading my Cocos2D game to Cocos2D 2.0-rc23. I found Cocos2D 2.0 removed ARCH_OPTIMAL_PARTICLE_SYSTEM.

" [FIX] Particle: Handles premultipled images correctly

Fixed possible memory leak when changing textures.
Examples: Removed ARCH_OPTIMAL_PARTICLE_SYSTEM since PointParticle is no longer supported

"

In my current code.

CCParticleSystem *emitter = [ARCH_OPTIMAL_PARTICLE_SYSTEM particleWithFile:@"ps.plist"];

How can I change this?

ttotto
  • 826
  • 3
  • 13
  • 31

1 Answers1

5

Trying using CCParticleSystemQuad instead:

CCParticleSystem *emitter = [CCParticleSystemQuad particleWithFile:@"ps.plist"];
Ken Toh
  • 3,721
  • 1
  • 24
  • 30
  • Now the CCParticleSystemQuad has been removed from sprite builder and cocos2d-v3 as well, what's the alternative? because particle designer has embedded image texture, but cocos2d won't read them – phil88530 May 12 '15 at 15:33