Follow these steps….

  1. Select your particle system from the Particle Designer .
  2. The go to file-> save as “file.plist”
  3. Copy file.plist to your resources folder.
  4. Copy the following code to your Xcode.
// in the .h file declare this.

CCParticleSystemQuad *emitter;
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"];
   // =0.3;
   // emitter.duration = 0.50;
    [self addChild:emitter];
   // emitter.autoRemoveOnFinish = YES;
    [emitter release];

Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.