Page 1 of 1

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

Posted: Mon Jul 20, 2015 1:27 am
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!

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

Posted: Mon Jul 20, 2015 2:33 am
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.

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

Posted: Wed Jul 22, 2015 3:53 am
by fleshwhiskey
Thank you so much for helping me! I'm using anim8 now and its working swell. :awesome:

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

Posted: Wed Jul 22, 2015 3:14 pm
by Ulydev
Glad to hear that ! Please keep us updated :)