Questions tagged [ccparticlesystem]

40 questions
0
votes
2 answers

CCParticleSystemQuand not dealloced

I want to do a very simple thing but it's not working. I want to add some CCParticleSystemQuad in an NSMutableArray and delete them. Here is what I do : int cpt = 0; NSMutableArray *myArray = [[NSMutableArray alloc] init]; for (cpt = 0; cpt < 10;…
0
votes
1 answer

Using particles in cocos2d android

I'm working on a game for android using Cocos2D-android and when I'm trying to use the CCQuadParticleSystem class, the CTOR just returns null. I spent hours searching for an example or a tutorial on this and all I found was other people asking about…
Amit Farkash
  • 329
  • 3
  • 16
0
votes
1 answer

CCParticleSnow not looping/repeating.

I wrote this code. CCSpriteFrame *starParticleFrame = [[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:spriteName]; CCParticleSnow *emitter = [[CCParticleSnow alloc] initWithTotalParticles:8]; [emitter…
GeneCode
  • 7,545
  • 8
  • 50
  • 85
0
votes
1 answer

Cocos2d Particle with Multiple or Random Texture

I want to do what the title says. I have a snow particles setup. Works fine. But I'd like to have multiple textures for it PER EMITTER. Is this possible or do I just create multiple emitters?
GeneCode
  • 7,545
  • 8
  • 50
  • 85
0
votes
2 answers

Particle designer plist when repeating plays in Cocos2d but not when single run like an explosion

I have a Particle designer plist in Cocos2d that plays ok when I use plist that "loops" or repeats itself e.g. a rainbow but does not display when single display e.g. an explosion. I'm using cocos2d 2.0 in a vanilla template with a plists created…
JimZ
  • 147
  • 1
  • 8
0
votes
1 answer

Cocos2D 2.0 - Changing color of a CCParticle

So after messing around with my game, there's a thing that I wanted to share with you that I discovered about CCParticle. How do I change the color of the particles in a CCParticleSystem? When I was on cocos 1.x, I could change it with startColor,…
RaphBlanchet
  • 575
  • 6
  • 23
0
votes
1 answer

cocos2d ccparticlesystem .... speed low

i have this bubble that i want to show emerging from the bottom but the speed is too fast i want to slow down the speed to minimum the code is .. emitter2.texture = [[CCTextureCache sharedTextureCache] addImage:@"Bubbles-1.png"]; …
Ramiz Girach
  • 169
  • 2
  • 10
0
votes
1 answer

Rotating CCSprite with CCParticleSystemQuad as child node

I have a CCSprite that can bounce around the iPhone's screen. This sprite has a CCParticleSystemQuad as a child node. The particles are just small, simple circles that trail behind the moving sprite. Everything works fine until the sprite rotates…
MrDatabase
  • 43,245
  • 41
  • 111
  • 153
0
votes
2 answers

cocos2d create CCParticlySystemQuad

This function does nothing, execpt after about 30 seconds the fps begins to go down. I'd like to know what I have to do to display the ccparticle correctly. Here is my code: -(void) coccomilk:(CGPoint) p{ CCParticleSystemQuad *milk =…
0
votes
1 answer

Cocos2d v2.0: unable to add CCParticleSystem to scene

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…
mm24
  • 9,280
  • 12
  • 75
  • 170
1 2
3