Hi,
I have encountered a problem with BitmapFontAtlas that only seems to show up on a device, it works fine with the simulator.
After creating a label and set it to be transparent, and say coloured yellow, I then run an action to fade it in. On the simulator it works perfectly, while on the device it initially appears to be opaque, but it comes out white, not yellow.
Here is some sample code which is present in a layer that should exhibit the problem. I managed to work around the opacity bug by fading out the label immediately
BitmapFontAtlas * label = [BitmapFontAtlas bitmapFontAtlasWithString:@"Hello" fntFile:@"wisten22.fnt"];
label.color = gcYELLOW;
label.position = pos;
[self addChild:label z:1];
label.opacity = 0;
id fadeaction = [Sequence actions:
[FadeOut actionWithDuration: 0], // fade out to fix opacity bug
[DelayTime actionWithDuration:d], // text appears in White not yellow here, but only on the device!
[FadeIn actionWithDuration: t],
nil];
[label runAction: fadeaction];
Has anyone else come across this?
Thanks,
Nalin