I first need to understand what all x and y positions need to be when drawing/translating/scaling, before I can debug a 'glitch' problem.
At the moment I have a two simple images (head and a body), that are moving using vector movement.
Sometimes I can see a 1px y offset during the walking movement.
But I was thinking, what do videocard/love2d/os want ?
I did read that some people do use a love.graphics.draw(img,quad,math.floor(x),math.floor(y)) and for the scaling operation.
But is this needed, and better (to support most devices, for example) ?
If I do use floor then I have many more glitches, but I can fix that if I know what to use.
So the main question is: to floor or not to floor (for draw/translate/scaling)?
And the bonus question is, what does a image drawing do with this:
Code: Select all
love.graphics.draw( self.image, self:getQuad(), 1.2312321321323, 4.3423432423432 )