I subclassed CCSprite to detect a touch to itself.
touchBegan fires upon touch, but log shows that the same sprite is handling touches all the time even though I am touching different sprites every time.
(It's pointer address is same for all touch.)
Further log shows that it's the last sprite I added to the world layer.
Why is the last sprite I added react to touch events all by itself?
I used CCSpriteBatchNode, would this be related to the problem?
Or is it because cocos2d just doesn't perform hit-test to find the correct object to deliver the touch event to?