Hi everyone, I was looking for an UIScrollView like solution for cocos2d-x and all I could find is this great class named CCScrollView created by GParvaneh:
http://www.givp.org/blog/2010/12/30/scrolling-menus-in-cocos2d
So I took its code and ported it into c++ and works great now. (tested on airplay-sdk platform)
I’ve attached the new class.
I would be happy if this class will be part of the official cocos2d & cocos2d-x.
Enjoy.
Leo
update 27-6-2011: update files & add CCScrollLayerButton class (explained later in this post)
CCScrollLayer.cpp.zip (1.3 KB)
CCScrollLayer.h.zip (0.7 KB)
CCScrollLayer.cpp.zip (1.3 KB)
CCScrollLayer.h.zip (0.7 KB)
CCScrollLayerButton.cpp.zip (0.9 KB)
CCScrollLayerButton.h.zip (0.5 KB)