cocos2d ccparticlesystem ....速度低

时间:2012-12-21 13:20:55

标签: cocos2d-iphone ccparticlesystem

我有这个泡泡,我想显示从底部出现,但速度太快,我想减慢速度,以尽量减少代码..

   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

1 个答案:

答案 0 :(得分:1)

降低你的引力!!!!

emitter2.gravity = CGPointMake(-10, 1); //1000 is a bit to much for bubbles ;o)