I’m working on my first game using cocos2d-x and I have a problem with Particle System. I use particle system when I destroy an object in my game and I have multiple particle at the same time. My game becomes slowly and crash after some playing times. When I don’t use particle system, my game run ok without crash. I’ve tested on both Iphone and Android device and the game crashed on both of them.
In the game, I loop on my objects array and display particle for each object by this code:
CCParticleSystem* m_emitter = CCParticleExplosion::create();
m_emitter~~>setPosition( CCPointMake(posX, posY) );
Does anyone has experience with this problem? Please help me fix it.
Thank you very much and sorry for my bad English.