[Share] CCSlidingLayer Demo (An improved Scroll layer)

I shared a “Scroll layer demo” serval month ago which only supports horizontal mode : Check here

And here is a improved version which has the following features:

1. You can specify the size of the scroll layer
2. You can specify the container rect in which the scroll layer will be
3. You can add multiple scroll layers in the same scene at the same time and they will response to the touch event separately
4. The scroll layer supports vertical and horizontal mode

Screen shot:

To Download Page…

☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
If you feel all the stuffs in this site helped you a lot and you can get a game I made 🙂

☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Hi! This is an excellent sliding layer, but the only thing missing is cropping of the content rectangle.
    I tried using a parent layer with a ClippingNode, but the positioning of the scroll layer changes in a weird way. It should be quite straightforward…
    I don’t know if it’s something I did wrongly, could you please take a look and see if you can correct it?

    http://www.mediafire.com/download.php?46p9tk96616oo1l

    Thanks very much and keep up the great work on your site and all those demos! 😀

  2. Hello,

    Thanks for your sharing of this great sliding layer demo.
    But can you share how to mask the elements outside the sliding area?
    I really don’t know how to do and need some help. Thanks a lot.

  3. Pingback: List of Open Source Cocos2d Projects, Extensions and Code Snippets | iUridium