It seems AnAL forget two of the draw() arguments (the image offsets), i had to fix it like that:
Code: Select all
function anim_mt:draw(x, y, angle, sx, sy, ox, oy)
love.graphics.drawq(self.img, self.frames[self.position], x, y, angle, sx, sy, ox, oy)
end
it's because the animation image is slightly larger than the displayed image. I guess it would
be better if AnAL could mimick exacly love.graphics.draw() behaviour, but i've no time to
write a fix for that right know. Here is the part of my own code that show the different
behaviours ( 16,16 on one side, 8,8 on the other) :
Code: Select all
if love.keyboard.isDown("up") then
lm.anim:draw(lm.b:getX(),lm.b:getY(),lm.b:getAngle(),1,1,16,16)
else
love.graphics.draw(lm.img, lm.b:getX(), lm.b:getY(), lm.b:getAngle(),1,1,8,8)
end
hope this helps.