poundev23
poundev23

Reputation: 807

Cocos2d: Clipping Question

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 ...

Upvotes: 2

Views: 1962

Answers (1)

jtalarico
jtalarico

Reputation: 1066

You might want to take a look at this topic: 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.

Upvotes: 3

Related Questions