Anyone know how to use CCScrollView(vertical scrolling) and CCMenu together in cocos2d?

878 Views Asked by At

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

2

There are 2 best solutions below

1
On

vontio has posted a solution in cocos2dx here

0
On

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).