I'm facing a weird problem with BitmapFontAtlas.
I'm using the sample font like this:
BitmapFontAtlas *label2 = [BitmapFontAtlas bitmapFontAtlasWithString:@"60" fntFile:@"bitmapFontTest3.fnt"];
label2.position = ccp(40, 223);
label2.color = ccBLACK;
[self addChild:label2 z:1 tag:2];
Then I have a step: method updating the label like this:
BitmapFontAtlas *label = (BitmapFontAtlas*) [self getChildByTag:2];
[label setString:string];
It works in the simulator, the label stays black. On the device the label gets written in black and turns red when updating. Must be the default color of the font.
It doen't help doing a label.color = ccBLACK when updating.
Is this a bug? Why the hell does it write it in black the first time and then changes?
Regards,
Mads