0
votes

It seems like even if you set an Image object's smooth property to false, it doesn't make the Bitmap look jaggy on non-90-degree angles (jaggy = aliased, opposite of a smooth edges = anti-aliased).

Is there any way to achieve this? Or do I have to construct the rotation-spritesheet by hand and interpret the "angles to sprite index" calculations myself?

1
you meant the flash.display.Bitmap.smoothing property, right? if so, are you trying to set this property in AS3 or in the properties settings of the library asset in Flash Professional IDE? - Chunky Chunk
Nope, in some FlashPunk-based games you'll notice that the edges of rotated sprites stays jaggy. This has to do with the StageQuality set to LOW. Bitmap.smoothing is a slightly different option, as (when enabled) it tends to "blur" all the content of a Bitmap, giving it a polished look even when rotated, scaled or skewed. Although it's true both Stage.quality and Bitmap.smoothing, when turned LOW / false, they don't perform any edge smoothing or blurring algorithms on the content which can give your sprites an 8-bit style. - bigp

1 Answers

1
votes

Does

stage.quality = StageQuality.MEDIUM;

or

stage.quality = StageQuality.LOW;

do what your want? I haven't used this in a very long time, but tweaking quality is an old-school way to improve performance during certain situations.