Particle emitter doesn't show

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

emitter->setAnchorPoint(Vec2(0.5f, 0.f));

This looks wrong -> Vec2(0.5f, 0.f)

Still not working :frowning_face:

Ok I solved the problem. There was a problem with positioning the particle system. Probably it was showing but out of screen, not in the visible area.

I changed .plist file properly (changed sourcePosition 0) and it worked.