iphone - particles in particle systems behaves weird -


I have a node ('terrain' name) that I offset so that my main game object (my character ) At the center of the screen I do this:

  [_terrain setOffsetX: offset x and offset: offset y * 4/3];   

This is the thing that in my area, I have a particle system when my character (and thus offset the terrain) is not included in the up-worm trojasciri emitted particles It appears that the emitted particles are covered. Here's my particle system code which I would like to include in my area class (i.e. myself refers to the terrain): emitterSnow = [CCParticleSnow node]; EmitterSnow.position = startPoint; [EmitterSnow setAnchorPoint: CGPointZero]; [Self added: Emitterson zoom: 0 Tags: Wind indicator tag]; CGPoint p = emitterSnow.position; EmitterSnow.position = CCP (P. x + width / 2, PI); EmitterSnow.life = 1; EmitterSnow.lifeVar = .3f; [EmitterSnow Set IsRelativeAnchorPoint: Yes]; EmitterSnow.posVar = CGPointMake (width / 2.0); // gravity emitterSnow.gravity = CCP (0,1000); // speed of particles emitterSnow.speed = 140; EmitterSnow.speedVar = 20; CcColor4F startColor = emitterSnow.startColor; Startcolor.r = 0.9f; StartColor.g = 0.9f; Startcolor.b = 0.9f; EmitterSnow.startColor = startColor; CcColor4F startColorVar = emitterSnow.startColorVar; StartColorVar.b = 0.1f; EmitterSnow.startColorVar = startColorVar; EmitterSnow.emissionRate = 30; EmitterSnow.texture = [[CCctactationCatch shared sharecatch] added image: @ "bubble 2 page"];

How can I move from the sources of particles of my particles?

status type (a tCCPositionType ) Try to Use kCCPositionTypeFree (default one) to move the particles independently, or use kCCPositionTypeGrouped to move them to the group.

Comments