-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlxBitmapText alpha not displaying as intended #1877
Comments
Looks like I can reproduce this in the |
Found the fix. Only reason I didn't bother doing a pull request is because it's a one-liner. override private function set_alpha(value:Float):Float
{
super.set_alpha(value); // This was forgotten, apparently.
alpha = value;
if (FlxG.renderBlit)
{
pendingTextBitmapChange = true;
}
return value;
} |
Any idea why the original alpha = value wasnt working? |
I think the assignment was working, it's probably more about the |
Aurel300
pushed a commit
to larsiusprime/haxeflixel
that referenced
this issue
Apr 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code snippet reproducing the issue:
Observed behavior:
test1 displays as expected, zero alpha, invisible. test3 also, one alpha, opaque. test2, however, is opaque, despite having an alpha of 0.1. (The same happens with values 0<x<1.)
Expected behavior:
Aforementioned bitmap texts should display with their respective alphas.
I will provide more details if inquired.
The text was updated successfully, but these errors were encountered: