flixel icon indicating copy to clipboard operation
flixel copied to clipboard

FlxBitmapText alpha is wrong on native

Open JoeCreates opened this issue 10 years ago • 4 comments

Currently setting the alpha of a FlxBitmapText with a border is incorrect on native.

It looks like the border and text are being made transparent separately, which means the overall alpha is wrong and produces some strange effects. I think there is more on top of this, though...

White text on a black border, for example, will seem to turn black before turning transparent.

Example: http://hastebin.com/dorijovuyo.avrasm

bitmaptextbug

JoeCreates avatar Nov 26 '14 13:11 JoeCreates

That hastebin is empty.

Gama11 avatar Jun 20 '15 09:06 Gama11

Definitely still an issue though, reproducible with this code in the FlxBitmapText demo:

//tf.textColor = 0xff000000;
//tf.useTextColor = true;
tf.borderStyle = FlxTextBorderStyle.OUTLINE;
tf.borderSize = 2;
tf.alpha = 0.4;

Gama11 avatar Jun 20 '15 10:06 Gama11

How are we supposed to render to a texture such that we can reuse it on native? This is something I am still unsure of, but it would help with this among many other issues such as per sprite/camera shaders.

JoeCreates avatar Jun 22 '15 23:06 JoeCreates

This is still an issue with the latest dev branch.

Gama11 avatar Apr 22 '18 13:04 Gama11