Thursday, 15 March 2012

cocos2d iphone - CCLabelTTF Color - Gradient Possible? -



cocos2d iphone - CCLabelTTF Color - Gradient Possible? -

i create label in game using code:

cclabelttf *label = [[cclabelttf alloc] initwithstring:@"combo x1" dimensions:cgsizemake(200,100) alignment:uitextalignmentcenter fontname:@"helvetica" fontsize:hd_text(25.0f)]; label.color = ccc3(255,0,0); [self addchild:label z:0 tag:44];

this gives me reddish label. i'd have gradient colored label. possible using cclabelttf?

thanks

no. utilize bitmap font instead. glyph designer enables create gradients , shadows characters.

hiero can can't recommend tool, it's total of bugs , has terrible user interface.

cocos2d-iphone

No comments:

Post a Comment