Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CCLayer (itemLayer) that has a bunch of CCMenuItemImage (itemButton) objects in it placed vertically in a column. These itemButton objects go way past the bounds of the screen and the itemLayer is sized accordingly to fit all itemButton objects it contains (for example, an itemButton object is sized 50px high and itemLayer has 30 of it, itemLayer will then have 1500px as its height).

However, this itemLayer object's visible area only needs to be 500px high. Is it possible to somehow mask this itemLayer object so that the user only sees 500px of it but still be able to scroll through the whole list of itemButton objects?

share|improve this question
Wouldn't you size your layer and use a CCScrollView? – Jason May 25 '13 at 17:45
Have you tried ClippingRectangleNode or CCClippingNode ? – Emadpres May 8 '15 at 11:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.