Questions tagged [ccparticlesystem]

40 questions
1
vote
1 answer

CCParticleSystemQuad not getting deallocated when added to a moving sprite

I am trying to add a particle trail effect in cocos2d, I managed to do it by adding CCParticleSystemQuad emitter as a child to the moving sprite. But I am observing that this emitter is not getting deallocated eventually. if I add this emitter to…
imagin
  • 317
  • 3
  • 13
1
vote
1 answer

Cocos2d particle system positioning

I'm trying to make a rain effect. I used Particle Designer to create the effect. However in Cocos2d I need the rain to fall everywhere along the x axis, from the top of the screen, no matter how wide the screen is. self.rainParticleSystem =…
soleil
  • 12,133
  • 33
  • 112
  • 183
1
vote
1 answer

CCParticleSystemQuad incorrect colors from Particle Designer?

I am using the latest version of Cocos2D and Particle Designer and I have noticed that the colors are not the same in Cocos2D from the way they look in the simulator in Particle Designer. In particular I am trying to achieve a more orange color for…
SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191
1
vote
3 answers

Can Someone Give Me A Simple COcos2d-X Particle Example?

I just want to make a CCParticleExplsion using Cocos2d-x and C++, but can't seem to find it after searching all over. ObjC example: CCParticleSystem *firework = [[CCParticleExplosion alloc] initWithTotalParticles:200]; [self…
David Small
  • 581
  • 1
  • 10
  • 25
1
vote
2 answers

control over individual particles in a CCParticleSystemQuad?

I am calling setTexture:withRect: on a particle emitter... My question is, is there any way I can give multiple rects so that the particles can be comprised of random sprites? Or is the only way to accomplish this to use multiple emitters? I…
patrick
  • 9,290
  • 13
  • 61
  • 112
0
votes
1 answer

Cocos2d: Emitted particles do not pan correctly with screen

I have setup a particle emitter to show a glowing orb which looks great (added by the code below). The only issue is that when I pan around the level the particles that have already been created pan around too rather than staying local to the…
Chris
  • 26,744
  • 48
  • 193
  • 345
0
votes
1 answer

Particle Effect [Does CCParticleSystemQuad change its position wrt to its parent]

I have a particle system that I use in the following manner DustParticle = CCParticleSystemQuad::create("dust_texture.plist"); Vec2 pos = Vec2( BadSprite->getPositionX() BadSprite->getPositionY()…
MistyD
  • 16,373
  • 40
  • 138
  • 240
0
votes
2 answers

particleSystem perform different download from App Store

I developed a game for iPhone versions and tested it on the simulator and actual devices(iphone5/6/6+/ipad) before I launch to App Store. However, when i downloaded my app from the app store, the particle system behave differently only with iPhone…
ray chan
  • 1
  • 1
0
votes
1 answer

CCParticleSystemQuad crashing with error "Abnormal error in particle quad"

The code just crashes when an already running particle effect's setVisible property is changed to NO, and later turned to YES. I have been working with ParticleEffects for a while now but never have I faced this error before. I don't know where I am…
0
votes
1 answer

Adding more Child to main CCLayer causes other child not function properly

I am developing an android game using cocos2d-x. In the main menu layer I have put on a background image, a play button and i have also used CCSpriteParticleSystem class to show some snow fall effect. The Problem I am facing is that when I add…
user3742209
  • 71
  • 2
  • 6
0
votes
0 answers

cocos2d-x game slows down while showing effect of CCParticleExplosion

I am using this->schedule( schedule_selector(HelloWorld::Game), 0.01); and in my game play function game slows down due to following code CCTexture2D* texture = CCTextureCache::sharedTextureCache()->textureForKey("CloseSelected.png"); …
Ahmad dar
  • 81
  • 1
  • 14
0
votes
1 answer

CCParticleSystemQuad isRunning/particleCount behaviour

I have some questions regarding the isRunning and particleCount properties of CCParticleSystemQuad. I'm currently managing reuse of particle systems, thus I need a boolean check for if the system is currently running. The two properties that I…
David Zhang
  • 346
  • 2
  • 13
0
votes
1 answer

CCParticleSystem says its running, isn't visible

Now this might seem like a really stupid question, and while it probably is, it isn't because I have tried for 2 minutes following a tutorial then failing. I've spent the past two hours or so trying to figure this out, with no success. My question…
Oscar Apeland
  • 6,422
  • 7
  • 44
  • 92
0
votes
1 answer

How can I create an empty ParticleSystem and add child particlesystemquad on it like CCNode

I'm making a game using cocos2d-x 3.0 alpha, and I want it to create empty ParticleSystem object(root A) and add many ParticleSystemQuads on it as children. so I would be able to change position and scale, etc., by just changing root A only. so I…
Bright Lee
  • 2,306
  • 2
  • 27
  • 55
0
votes
0 answers

CCParticleExplosion working on Simulator but not on iPhone 4S

I am having an issue where a CCParticleExplosion works perfectly on the Simulator and fails on my iPhone 4S. In the simulator, the particles look fine. When the explosion happens on my iPhone, there is a dark shadow of the explosion and broken,…