Hi, I’m following a tutorial about that, but the code is relative to a little old version of cocos2d-x so, something is not working. Here is part of the code:
void HelloWorld::ccTouchesBegan(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent)
CCTouch *touch = (CCTouch *) pTouches->anyObject();
CCPoint location = touch->getLocationInView();
location = CCDirector::sharedDirector()->convertToGL(location);
CCRectContainsPoint has been replaced with *containsPoint()*. So, How can I use it?