Tag to prefab dynamically and intersect in script
Cocos
APRIL 9, 2023
This is the Cocos2dx code snippet. I want to do this in the creator-type script. count++; demo = Sprite::create(“d1”); demo->setPosition(Vec2(362.399170,831.098450)); demo->setTag(count); this->addChild(demo); if ( this ->getChildByTag(i)->getBoundingBox().containsPoint(location)) Kindly help.
Let's personalize your content