I am developing a game in which I want to apply outline on text. I am using following code for this, but applied outline in only black color. I try different colors but eachtime outline color is black.
Label *_scoreGameOver = CCLabelTTF::create( "0", "GIL-Sans-MT.ttf", 45,CCSizeMake(200, 70),TextHAlignment::CENTER); _scoreGameOver->setPosition(Vec2(_winSize.width *0.32 , _winSize.height *0.5)); _scoreGameOver->setColor(Color3B::BLACK); _scoreGameOver->enableOutline(Color4B::WHITE,5); addChild(_scoreGameOver,1);
I searched on google and cocos forum too but I didn’t find my answer.
Sorry for bad English, because my English is weak.