How to crop some part of sprite?
问题 I am working on a game like tap tap ants(https://itunes.apple.com/us/app/tap-tap-ants/id348839552?mt=8) in iPhone. I want to crop some portion of sprite. when an ant touches cake sprite, some portion of cake disappear. I researched a lot but could not find any solution. Plz help 回答1: You can use spritesheets in the form of CCSpriteBatchNode to set a display frame on a sprite. As done so below. This allows you to select a boxed region of the spritesheet to be displayed. CCSpriteBatchNode