粒子特效的使用
首先现在一粒子特效软件:ParticleDesigner131.dmg
auto particle=ParticleSystemQuad::create("Untitled.plist");
newB->addChild(particle);
particle->setPosition(x,y);
auto act=Sequence::create(DelayTime::create(1),CallFunc::create(CC_CALLBACK_0(Boom::killMe, newB)), NULL);
newB->runAction(act);
创建特效之后在哪里使用,就在哪里添加代码。
声音的添加请看第一篇博客:3句话交给如何添加应约特效