我有这个泡泡,我想显示从底部出现,但速度太快,我想减慢速度,以尽量减少代码..
emitter2.texture = [[CCTextureCache sharedTextureCache] addImage:@"Bubbles-1.png"];
emitter2.position = ccp(size.width/2,-200);
// gravity
emitter2.gravity = CGPointMake(-10, 1000);
// angle
emitter2.angle = 95;
emitter2.angleVar = 360;
// speed of particles
emitter2.speed = 1 ;//80;
emitter2.speedVar = 1;
// radial
emitter2.radialAccel = -120;
emitter2.radialAccelVar = 0;
// tagential
emitter2.tangentialAccel = 30;
emitter2.tangentialAccelVar = 0;
// life of particles
emitter2.life = 2;
emitter2.lifeVar = 1
答案 0 :(得分:1)
降低你的引力!!!!
emitter2.gravity = CGPointMake(-10, 1); //1000 is a bit to much for bubbles ;o)