I have a CCSprite that is size 40px by 40px that is loaded into a CCMenu. But I want to make the touch area of the CCSprite to be bigger 80px by 80px. Is there a way to do this in code?
Did you try using yourSprite->setContentSize(YOUR_SIZE)? The position might be calculated wrong, but you can undo the offset manually if you have to
Source: Answer on Stack Overflow for cocos2d
Also, you could handle touch detection code completely yourself, but you probably don’t want/need to do that.