I try to search cocos2d-x class or method for picking by transparency.
I use a png image. png image has a transparency area.
I don’t want to click transparency area. Just only click and pick my object when I got a non transparency area.
for this. I searched a lot of sites and communities. but I just got a this sites.
http://www.learn-cocos2d.com/2011/12/fast-pixelperfect-collision-detection-cocos2d-code-2of2/ but it was Opengl function. It is not cocos2d-x.
anybody knows cocos2d-x class for picking?
almost solution is make CCRect. but I don’t want to that.
Because circle, star or triangle is not rectangle.
if cocos2d-x doesn’t support it, I must got a different way like box2d, opengl method.
I attached two picture file.
pixel_picking.jpg (21.8 KB)