I want to create a fire particle system on a sprite when its hit by another sprite:
void MySprite::hit() { auto ps = cocos2d::ParticleFire::create(); ps->setPositionType(cocos2d::ParticleSystem::PositionType::RELATIVE); this->addChild(ps); } I use 'setPosition3D' and 'lookAt' methods for moveing camera in the scene. when i move camera, the particle system stuck in the screen (and always has a fixed position in the window) and dont follow the parent sprite!
I try different position type, Follow action, setSourcePosition method, but the problem not solved.
I use cocos2d-x v3.3 and C++ in Visual Studio 2013.