How to Implement Scrolling functionality in cocos2d Surfaceview in android? Please give me some suggestion.
How to Implement Scrolling functionality in cocos2d Surfaceview in android? Please give me some
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no scroll view available in cocos2d, but check the below details if it can help you.
This example for screen reslution 320 x 480.
Ex : My screen height is 320 and I made a node of height 640.
EX : CGPoint touchLocation = CCDirector.sharedDirector().convertToGL(CGPoint.ccp(event.getX(), event.getY()));
node.setPosition(0, 320 + (touchLocation.y – touchlocation.y of touch began))
Hope it will work for you and if any other details required then comment on this