Ok just an example, let’s say you have a 40 x 40 sprite and you only want the lower part of it as touchable. On top of my head this is what I’ve got.
On your HelloWorld.h file declare a new sprite like so
next on your .ccp file under init()
yourSprite = CCSprite::spriteWithFile("something.png");
yourSprite->setPosition(anywhere you want);
next on your ccTouchBegan method we need to create a bounding box for you sprite’s lower part to indicate that bounding box that we are creating is touchable.
On your ccTouchBegan(CCTouch* touch, CCEvent* event)
location = this->convertTouchToNodeSpace(touch);
//A little math here will get your sprite's lower bounding box
CCRect yourSpriteLowerBoundingBox = CCRectMake(yourSprite->getPosition().x - (yourSprite->getContentSize().width), yourSprite->getPosition().y - (yourSprite->getContentSize().height), yourSprite->getContentSize().width, yourSprite->getContentSize().height /2);
if (CCRect::CCRectContainsPoint(yourSpriteLowerBoundingBox, location)
now if you touch the lower part of yourSprite it should delete your yourSprite otherwise nothing will happen.