CCLabelBMFont color setting

Hi all.

I have a png with a yellow letters and .fnt file to that png. When I create CCLabelBMFont with this, I have a yellow colored text. When I’d try to change it’s color, I have found that setColor() method is not setting color really, it set overlay color instead. So with the yellow colored letters by default I can’t receive blue colors by overlaying.

Does anybody know the solution of that problem?

Hi.

Maybe it’s a problem with your font exporting settings.
I use BMFont, and when I export a font, in Export Options I go to Presets and select: WHITE TEXT WITH ALPHA.
If I want the font to have outline, I use: OUTLINED TEXT WITH ALPHA.
With those presets I never have any problems setting colors.

If you have no way of re-creating the fonts, then you should probably edit the yellow out of the PNG in photoshop or similar programs.

Hope that helps!