Page 2 of 2

Re: How do I use a Sprite Map in Love?

Posted: Tue Oct 11, 2011 11:17 pm
by miko
enderspike wrote:Bad ass. Progress is being made! Now, how do I know which co-ordinate is what in the image? Like, how do I figure out what numbers to put in to get the part of the map I want?
You either make your spritesheet even-spaced, or store coordinates of each frame/image in external map file (which is just a plain text file). So in your case you need to:
1. create map file
2. change your spritesheet image
3. use only those evenly-spaced frames from existing image

I am attaching my modified example from here https://github.com/miko/Love2d-samples/ ... priteSheet, it does not work that nice, but will give you a start.

Re: How do I use a Sprite Map in Love?

Posted: Thu Oct 27, 2011 6:36 pm
by enderspike
Totally got it, thanks to you! I am a better programmer than before.