I'm a Cocos2D noob. I have trolled the forum looking for a relevant thread and couldn't find one. So here is my question...
I have several overlapping sprites and I intend to implement drag handling on each of them. The sprites include transparency and can at anytime be rotated. When my user touches and drags a sprite I try to determine which object they touched in my scene's ccTouchesBegan. I pass [sprite boundingBox] (8.2) and the translated touch point to the CGPointInside function but of course I get an inconsistent result. If the touch was on a transparent part of the sprite the user was actually touching the sprite behind this sprite. Or if the sprite is rotated its bounding box is not representing its actual volume anymore. Again the user may well be intending to touch the sprite behind this one.
The problem seems to call for a painters method. But it seems like a very common problem so maybe I'm missing something in Cocos2D core code. How are other people handling these situations?
Thanks in advance.