FlxBitmapText setColor [Closed] [Pending]
-
I'm stuck on trying to set a gray color to a bitmap font:
tf = new FlxBitmapText(loadFont("pf_westa_seven_condensed_regular_8")); tf.text = "Testing gray color"; tf.textColor = 0xff808080; tf.useTextColor = true; tf.x = 200; tf.y = 200; add(tf);
it always shows white as you can see it on that screenshot:
What am I missing?
-
@xbelanch said in FlxBitmapText setColor:
well, the API ref said Result color of text will be multiplication of textColor and color
what is your text's original color?
-
0xffffffff ;)
-
@xbelanch said in FlxBitmapText setColor:
maybe it's related to this?
https://github.com/HaxeFlixel/flixel/issues/2143#issuecomment-383978432
-
@ag-w thanks so much! that's the answer. For the next time before I post for a help I'll be aware of github open issues list apart from reading the manual.