i read cocos2d book, i want to convert to cocos2dx, so how to convert this line:(
[label setString: [NSString stringWithFormat: @“%d”,score]];
label is CCLabelAtalas type
i read cocos2d book, i want to convert to cocos2dx, so how to convert this line:(
[label setString: [NSString stringWithFormat: @“%d”,score]];
label is CCLabelAtalas type
this should work
label->setString(CCString::createWithFormat("%d", score)->getCString());