Search found 3 matches
- Thu Jan 07, 2010 3:41 pm
- Forum: Libraries and Tools
- Topic: Animations And LÖVE (AnAL) - The animations replacement lib
- Replies: 71
- Views: 57747
Re: Animations And LÖVE (AnAL) - The animations replacement lib
There is still a difference when i use drawq: q = love.graphics.newQuad(0,0,16,16,16,16) [...] 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.drawq(lm.img, q, lm.b:getX(), lm.b:getY(), lm.b:getAngle(),1,1,8,8) -- exact ...
- Thu Jan 07, 2010 3:26 pm
- Forum: Libraries and Tools
- Topic: Animations And LÖVE (AnAL) - The animations replacement lib
- Replies: 71
- Views: 57747
Re: Animations And LÖVE (AnAL) - The animations replacement lib
My post wasn't about telling who's fault it is, just to suggest changes to makes the lib use more straigthforward... I don't think the offsets arguments behave differently in draw and drawq, I think that the lib has to take into account the size of the animation image and the size of a single frame ...
- Thu Jan 07, 2010 3:07 pm
- Forum: Libraries and Tools
- Topic: Animations And LÖVE (AnAL) - The animations replacement lib
- Replies: 71
- Views: 57747
Re: Animations And LÖVE (AnAL) - The animations replacement lib
Hi, It seems AnAL forget two of the draw() arguments (the image offsets), i had to fix it like that: 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 Even with that, the offset arguments don't behave like th...