-
Notifications
You must be signed in to change notification settings - Fork 141
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
Fix transition bug with persistent images #412
Conversation
Optimize fade transition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you test this with FlxSprite.defaultAntialiasing = true
, if it looks bad then you will need to set sprite.antialiasing = false;
|
||
if (dirX == 0 && dirY == 0) | ||
{ | ||
// no direction | ||
sprite.makeGraphic(Std.int(region.width), Std.int(region.height), _data.color); | ||
sprite.makeGraphic(1, 1, _data.color, false, bitmapKey); | ||
sprite.scale.set(Std.int(region.width), Std.int(region.height)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this look weird when FlxSprite.defaultAntialiasing is false?
Should probably be better to be safe, with having it set antialiasing to false, because it might change on different platforms like between windows, mac, linux, html, flash, and i cant really test that |
Not sure if i should add I also placed the no antialiasing to affect the other wipes, since they are also optimized with 1px and scaled |
Thanks! |
Also optimized the fade transition, by scaling the 0 angle version