Page 1 of 1

animX - An animation library for love2d

Posted: Tue Dec 03, 2019 7:40 am
by YoungNeer
Let's say you have this spritesheet:-


Image


There are 6 sprites per row and a total of 24 images!! So you with animX you'd do just this:-

Code: Select all

anim=animx.newAnimation{
	img='glitch_crab.png',   --url/reference to the image
	spritesPerRow=6,
	noOfFrames=24
}:loop()
and that's it!

Now i don't want to make this a long post so I'll not demonstrate the powers of animX here. For the same reason I'm living an attachment for you to study and the link to the project as well as the documentation