Closed ActualMandM closed 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.
When trying to enable the antialiasing property for FlxBackdrop objects, it will not actually result in antialiasing getting applied to said object.
In this example, it causes the sparkles to be noticeably pixelated compared to the rest of the assets in the scene.