How can I write a scrolling text in cocos2d ?
- by srikanth rongali
I have a text and it should be abled to scrolled only up and down to see entire text. and my application is a game and written in cocos2d. So, I have layers. There is also an image(CCSprite) adjacent to text. The text should be scrolled and the image have a touchesEnded: property. I used CCLabel for text and CCParallaxNode to add the text. But the text appears like a continues paragraph. But, my text should have different lines. My text is like this.
//text starts
Hey Player.
Do you want to play the game right now
then play.
Do you want to practice or Play? what
want to do?
...text continues
//text ends
What should I use for this ? Thank you.