How to use the Particle Designer and export the file in your Xcode?

By | February 8, 2011

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;
</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];
}

Leave a Reply

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