For example, in my case every button look likes a hex. Hex pictures on these buttons can't intersect but their rects can.
Asked
Active
Viewed 408 times
0
-
2Not without modifying the CCMenuItem code respectively subclassing. – CodeSmile Dec 17 '12 at 23:12
-
thanks it will be my temporary solution – Gargo Dec 19 '12 at 20:59
2 Answers
2
You can use the new activeArea
property of CCMenuItem
to define your custom touchable region: see this article

sdabet
- 18,360
- 11
- 89
- 158
1
You can use CGMutablePathRef to make non-rectangular sprite collision detection. use this in CCMenuItem. It works...See my answer in this post:Custom touch detection