0

For example, in my case every button look likes a hex. Hex pictures on these buttons can't intersect but their rects can.

iPhoneProcessor
  • 4,980
  • 6
  • 27
  • 49
Gargo
  • 1,135
  • 1
  • 10
  • 21

2 Answers2

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

Community
  • 1
  • 1
Guru
  • 21,652
  • 10
  • 63
  • 102