My requirement :
the mouse following the particle effects, when I slide the mouse a certain distance, the scene change with a flip effect.
But just because added a mouse particle effects, the previous scene become transparency, the flip effect very ugly.
any one kown the reason?
flip effect :
TransitionsScene *nextScene=new TransitionsScene(); SharpMenuLayer *nextLayer = new SharpMenuLayer(); nextScene->addChild(nextLayer); CCDirector::sharedDirector()->setDepthTest(false); CCScene *pScene = PageTransitionForward::create(2.5f, nextScene); nextScene->release(); nextLayer->release(); if (pScene) { CCDirector::sharedDirector()->replaceScene(pScene); }
particle effect:
@ m_emitter = CCParticleFlower::create();
m_emitter~~>setAutoRemoveOnFinish;
m_emitter~~>setEmitterMode(kCCParticleModeGravity);//kCCParticleModeGravity kCCParticleModeRadius
m_emitter~~>setEndSize;
m_emitter~~>setTotalParticles(4);
m_emitter~~>setLife;
m_emitter~~>setDuration(0.5);
m_emitter~~>setSpeed;
m_emitter~~>setPositionType(kCCPositionTypeFree);
m_emitter~~>retain;
this~~>addChild(m_emitter, 1);
//m_emitter->setTexture( CCTextureCache::sharedTextureCache()>addImage );>setPositionĀ§;@
m_emitter
when I remove the particle , the filp is normal well.
flip1.gif (881.4 KB)