How can I write a scrolling text in cocos2d ?

Posted by srikanth rongali on Stack Overflow See other posts from Stack Overflow or by srikanth rongali
Published on 2010-04-14T06:20:23Z Indexed on 2010/04/14 6:23 UTC
Read the original article Hit count: 325

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about cocos2d-iphone