CCParticleFlowerをCocos2dv2.0(ARCが有効になっている)HelloWorldシーンに追加しようとしています。これが私が実行しているコードです。
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];
私はいくつかの変種を試しましたが、それを実行することができなかったので、私が間違っていることを静かに確信していません。
例えば:
CCParticleSystem * system = [CCParticleFlower node];
system.position = CGPointMake(150.0f, 100.0f);
[self addChild:system];