Hi all.
Today I wanted to add fire effect to my game. So I made a particle system .plist and .png. But it’s not showing in my game. Why?
I’m using this code in my BlockGroup.cpp:
auto texcache = Director::getInstance()->getTextureCache();
auto emitter = ParticleSystemQuad::create("particle_fire.plist");
emitter->setTextureWithRect(texcache->getTextureForKey("particle_fire.png"),
Rect(0, 0, 32, 32));
emitter->setOpacity(175);
emitter->setAnchorPoint(Vec2(0.5f, 0.f));
sprBlock->addChild(emitter); // sprBlock is a Sprite object
Thanks for any help.
PS. I need urgent help @slackmoehrle