I use the following code with successfull on my firstscene(only have a ccmenu)
CCParticleSystem* system = CCParticleSystemQuad::create("ExplodingRing.plist"); this->addChild(system);
The code works, I use the code inside my init method of my GameScene, but I try to use it inside my didAccelerate method, because I did colision detect inside the didAccelerate method.
If I use the code above inside didAccelerate method, I receive the foloowing error:
call to OpenGL ES API with no current context (logged once per thread)
What I doing wrong? There’s any way to correct that?