How To Mask a Sprite with Cocos2D 1.0 | Ray Wenderlich

Sometimes in your games you might find it handy to display only a portion of a sprite. One way you can do this is by using a second image called a mask. You set the mask image to be white wherever you want the image to show up – and transparent everywhere else. Then you […]


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4421/how-to-mask-a-sprite-with-cocos2d-1-0