Search code examples
iosios5cocos2d-iphone

How to clip scene to screen bounds?


I have a scene, containing layers which are large enough to be off-screen. When I do scene transition (eg. CCTransitionSlideInR) the off-screen part is visible during transition which of course looks ugly. What I want is to clip the scene to screen size. How can I do that?


Solution

  • You could perhaps use this:

    https://github.com/njt1982/ClippingNode

    The main page references original sources.