int score = 0;
CCLabelTTF *scoreLabel;
scoreLabel = CCLabelTTF::labelWithString(“Score :”, “Thonburi”, 28);
// scoreLabel = CCLabelTTF::labelWithString(“Score :” + score, “Thonburi”, 28);
scoreLabel~~>setPosition);
this~~>addChild(scoreLabel, 1);
How can use with this (int)score ?
test.png (122.8 KB)