Anyone know how to use CCScrollView(vertical scrolling) and CCMenu together in cocos2d?Also can we use CCScrolllayer instead of CCScrollView or which on is better to use in cocos2d? Thanks in advance
Anyone know how to use CCScrollView(vertical scrolling) and CCMenu together in cocos2d?
879 Views Asked by Ashok At
2
There are 2 best solutions below
0

For cocos2d-iphone I would recommend CCScrollLayer ( which is part of cocos2d extensions: https://github.com/cocos2d/cocos2d-iphone-extensions
Right now CCScrollLayer only supports horizontal movement but it shouldn't be much difficult. Have a look at ccTouchMoved and try updating y co-ord (instead of x).
vontio has posted a solution in cocos2dx here