Mask for touch detection

Mask for touch detection
0.0 0



It´s possible to define a ‘mask’ for a sprite, so the touch is detected only if inside that mask?

For examples, you may have a sprite of a fish, and another image (black and white) with the image of the fish all white.

So, the touch is the fish is detected only if the point is in the wite region.




Hmmm, maybe using CCClippingNode?