views:

63

answers:

1

Hi,

What is the recommended way to do basic clipping with cocos2d?

I am developing a tab control for an educational product and I want the items on a tab page to be clipped by that tab page. So any CCSprites on the CCNode that IS the tab page should be clipped to that CCNode?

Any help would be appreciated ...

A: 

You might want to take a look at this topic: http://stackoverflow.com/questions/3177751/cocos2d-iphone-sprite-cliping-mask-frame

In a nutshell, you can't clip based on a CCSprite. You need to create your own clipping mask and control it independently.

jtalarico
Thanks that was very helpful.
poundev23