[3.8] Particle SpriteFrame limitation

Hi all,

I try to use a particle flower with an image from a texture pack so i use :

particleFlower->setDisplayFrame(SpriteFrameCache::getInstance()->getSpriteFrameByName("myPackedImage.png")); 

Unfortunatly cocos2d displays the whole texture and not only the part of it corresponding to “myPackedImage.png”.

Is it a cocos2d-x issue or am i doing something wrong?

Thanks for your help.

1 Like

Maybe is there another way to affect a spriteframe to a particle flower?

OK, my issue is related to this code from CCParticuleSystemQuad.cpp:

CCASSERT(spriteFrame->getOffsetInPixels().isZero(), 
         "QuadParticle only supports SpriteFrames with no offsets");

Are QuadParticule will support SpriteFrames with offsets in the future or will this limitation remain on next cocos2dx version?

Thank you.