Closed alesegdia closed 8 years ago
Hi! Sorry it took me a while to answer this.
I have released a new version of anim8 which includes a new method, anim:getDimensions()
. It returns both the width and height of the current frame in a single call, so the usage is like this:
local w,h = anim:getDimensions()
Appart from this, it is very similar to your recommendation. Thanks a lot!
Nice. Thanks!
Like
anim:getWidth()
andanim:getHeight()
, or maybe more explicit likeanim:getCurrentFrameWidth()
. What do you think about this?