HaxeFlixel / flixel-addons

Additional classes for HaxeFlixel
170 stars 139 forks source link

[FlxBackdrop] Antialiasing property has no effect #357

Closed ActualMandM closed 2 years ago

ActualMandM commented 2 years ago

When trying to enable the antialiasing property for FlxBackdrop objects, it will not actually result in antialiasing getting applied to said object.

sparkleBG = new FlxBackdrop(Paths.loadImage('clubroom/YuriSparkleBG', 'doki'), 0.1, 0, true, false);
sparkleBG.velocity.set(-16, 0);
sparkleBG.visible = false;
sparkleBG.setGraphicSize(Std.int(sparkleBG.width / defaultCamZoom));
sparkleBG.updateHitbox();
sparkleBG.screenCenter(XY);
sparkleBG.antialiasing = true;

sparkleFG = new FlxBackdrop(Paths.loadImage('clubroom/YuriSparkleFG', 'doki'), 0.1, 0, true, false);
sparkleFG.velocity.set(-48, 0);
sparkleFG.setGraphicSize(Std.int((sparkleFG.width * 1.2) / defaultCamZoom));
sparkleFG.updateHitbox();
sparkleFG.screenCenter(XY);
sparkleFG.antialiasing = true;

In this example, it causes the sparkles to be noticeably pixelated compared to the rest of the assets in the scene.

2022-02-20_00-12-59_DokiTakeover