I'm trying to add CCParticleFlower to my Cocos2d v2.0 (with ARC enabled) HelloWorld scene. That's the code I am running:
CCParticleFlower* system = [[CCParticleFlower alloc] initWithTotalParticles:10];
// Set some parameters that can't be set in Particle Designer
// system.positionType = kCCPositionTypeFree;
// system.autoRemoveOnFinish = YES;
system.visible = TRUE;
[system setDuration:4.0f];
system.position = CGPointMake(150.0f, 100.0f);
[self addChild:system z:0];
I tried several variants but I'm not quiet sure what I am doing wrong as I never managed to run it.
E.g.:
CCParticleSystem * system = [CCParticleFlower node];
system.position = CGPointMake(150.0f, 100.0f);
[self addChild:system];