Hello everyone, i’m trying to create a ParticleFlower like this:
I load this before:
std::string path;
path = FileUtils::getInstance()->fullPathForFilename("stars.png");
auto texture = Director::getInstance()->getTextureCache()->addImage(path); //using texture here just to check if it was added and is not nullptr
Then i want to Run the particleSystem:
ParticleSystemQuad* emitter = nullptr;
emitter = ParticleFlower::create();
fileName = FileUtils::getInstance()->fullPathForFilename("stars.png");
texture = Director::getInstance()->getTextureCache()->getTextureForKey(fileName);
emitter->setTexture(texture);
emitter->retain();
sprite->addChild(emitter, 11);
but is not running and i see this output:
cocos2d: fullPathForFilename: No file found at /__firePngData. Possible missing file.
I can’t find anything related to this output so any help will be appreciated.
Thanks.