I have an object in my game that moves pretty slow, a bit under a pixel every second. When the object is moving at this speed, it looks pretty choppy, because it only moves once every second.
Is there any way that I could blend the movement so that it moves at say 1/8th of a pixel every 1/8th of a second through the use of possibly anti-aliasing? Is there a way I could create a smoother transition between the two frames that makes it look like the object is consistently moving rather than moving a pixel every second?
I am currently using a float system for all of my positions and velocities, however I do not know how to render the image using floats. I am currently using java.awt.Graphics drawImage
, which uses integers, rather than floats.