cocos2d-iphonetouchccmenuitem

Cocos2d. CCMenuItem with custom touchable region?


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


Solution

  • You can use the new activeArea property of CCMenuItem to define your custom touchable region: see this article