0

我有这个气泡,我想显示从底部出现,但速度太快我想将速度减慢到最小代码是..

   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
4

1 回答 1

1

降低你的重力!!!!

emitter2.gravity = CGPointMake(-10, 1); //1000 is a bit to much for bubbles ;o)
于 2012-12-21T16:03:59.703 回答