To update the score
@Implement (at the very top)
CCLabelTTF *scorelabel;
Label displaying the Score
score=0;
scorelabel = [CCLabelTTF labelWithString:[NSString stringWithFormat:@"score: %d",score] fontName:@"a2203.ttf" fontSize:18.0f];
scorelabel.positionType = CCPositionTypeNormalized;
scorelabel.color = [CCColor blackColor];
scorelabel.position = ccp(0.85f, 0.95f); // Top Right of screen
[self addChild:scorelabel];
After
score++;
Write
[scorelabel setString:[NSString stringWithFormat:@"score: %d",score]];