Drawing at non-whole coordinates Flash/HTML5

Monkey Forums/Monkey Programming/Drawing at non-whole coordinates Flash/HTML5

Foppy(Posted 2011) [#1]
My sprites use Floats for coordinates. I noticed that in the HTML5 version, they seem indeed to be drawn at non-whole coordinates. The movement and animations are quite smooth. In the Flash version however, it seems everything is drawn at whole coordinates. The animation is more step-wise and not as smooth.

Now I am wondering if this is something we can influence from Monkey?


Perturbatio(Posted 2011) [#2]
In flash, there are properties to set smoothing of bitmaps (don't know if monkey has them enabled by default).

I believe the movieclip class has a smooth property (boolean), also the quality setting of the flash move might also affect it.


Foppy(Posted 2011) [#3]
The BitmapData object used by Monkey (in the Flash as code) seems to have a smoothing option too, in its drawing function, but it is already enabled.


Perturbatio(Posted 2011) [#4]
There's also a flag that can be set on movieclips called "cache as bitmap", this can produce smoother animations.