animX - An animation library for love2d

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
YoungNeer
Party member
Posts: 115
Joined: Wed May 15, 2019 7:49 am

animX - An animation library for love2d

Post by YoungNeer » Tue Dec 03, 2019 7:40 am

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
Attachments
Side Scroller.love
(1.49 MiB) Downloaded 21 times
My Github- your contribution is highly appreciated

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests