Follow these steps….
- Select your particle system from the Particle Designer .
- The go to file-> save as “file.plist”
- Copy file.plist to your resources folder.
- Copy the following code to your Xcode.
// in the .h file declare this. CCParticleSystemQuad *emitter; </pre> Copy the code given below to the implementation file <pre class="brush:c"> -(void) particleShow { emitter.position = ccp(screenSize.width/2,screenSize.width/2); emitter = [CCParticleSystemQuad particleWithFile:@"file.plist"]; // emitter.life =0.3; // emitter.duration = 0.50; [self addChild:emitter]; // emitter.autoRemoveOnFinish = YES; [emitter release]; }