Update Label Value in Cocos2d

Posted by Viral on Stack Overflow See other posts from Stack Overflow or by Viral
Published on 2010-04-30T05:10:23Z Indexed on 2010/04/30 5:17 UTC
Read the original article Hit count: 295

hi friends

I am making a game in cocos2d , In that while updating score the old score values get on the label and the new value get overwritten. I m using following code to display the score,

LblScore = [CCLabel labelWithString:[NSString stringWithFormat:@"%d",score] dimensions:CGSizeMake(100, 300) alignment:UITextAlignmentCenter fontName:@"Arial" fontSize:32.0];

Because of this the score value are not shown and all things get massed up, If any one having idea how to update new score?

© Stack Overflow or respective owner

Related posts about cocos2d

Related posts about cocos2d-iphone