Guys, is there another way to validate if the user is touching the particle?
because below this code not working:
if(getChildByTag(1)->boundingBox().containsPoint§
// here create my particle at the beginning
ParticleSystemQuad* m_emitter_blue = ParticleSystemQuad::create();
m_emitter_blue = ParticleSun::create();
m_emitter_blue->retain();
m_emitter_blue->setStartSizeVar(150.0f);
//m_emitter_blue->setStartColor(Color4F::BLUE);
m_emitter_blue->setEndColor(Color4F::BLUE);
m_emitter_blue->setTag(1);
addChild(m_emitter_blue);
// Here the event
void HelloWorld::onTouchEnded(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) {
Point p = pTouch->getLocationInView();
p.y = Director::sharedDirector()->getWinSize().height - p.y;
if(getChildByTag(1)->boundingBox().containsPoint(p)){
}
}