Help: Animations, Spritesheets, Tigers, and Bears! Oh my!!

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
fleshwhiskey
Prole
Posts: 35
Joined: Mon Nov 24, 2014 6:20 am

Help: Animations, Spritesheets, Tigers, and Bears! Oh my!!

Post by fleshwhiskey »

I need help with spritesheets and animating my sprites (and even making sprites). If anyone could give me some pointers and explain to me how sprites & animation libs work, that would be SO helpful. I was planning to use animated gifs, but Love doesn't Love those... :(

Thanks!
hello!
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: Help: Animations, Spritesheets, Tigers, and Bears! Oh my

Post by Ulydev »

I highly recommend you to take a look at animation libraries like anim8 (https://github.com/kikito/anim8/blob/master/README.md).
The example is clean and will surely help you to get started.

Basically, you want to have all the animations for a particular object in one image (sprite sheet), that you divide in "frames". Then, you simply have to tell Löve which "parts" of the image correspond to which animation, and you can start drawing multiple animations and states from a single image.

For example, here's what a sprite sheet would look like :

Image

Another one, which contains multiple states :

Image

In this one, first column would be for the idle state, the second one for the side-idle state, and so on.
fleshwhiskey
Prole
Posts: 35
Joined: Mon Nov 24, 2014 6:20 am

Re: Help: Animations, Spritesheets, Tigers, and Bears! Oh my

Post by fleshwhiskey »

Thank you so much for helping me! I'm using anim8 now and its working swell. :awesome:
hello!
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: Help: Animations, Spritesheets, Tigers, and Bears! Oh my

Post by Ulydev »

Glad to hear that ! Please keep us updated :)
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 2 guests