Page 1 of 1

Is there a way to integrate spritesheets?

Posted: Thu Sep 29, 2011 5:44 am
by Giantfishy
If you want to make an animated sprite, is there an easier way of having a list of all of the images in the animation in a table and cycling through them (i.e. being able to set coordinates on an image to show only a certain part of that image). If there's a way to do that, it'd be awesome, thanks :D

Re: Is there a way to integrate spritesheets?

Posted: Thu Sep 29, 2011 6:20 am
by kraftman

Re: Is there a way to integrate spritesheets?

Posted: Thu Sep 29, 2011 7:55 am
by Giantfishy
Awesome, thanks! :D

Re: Is there a way to integrate spritesheets?

Posted: Thu Sep 29, 2011 4:43 pm
by TechnoCat
I don't think spritebatch is what you want.
You want a quad:
love.graphics.newQuad Quad
and to draw a quad:
love.graphics.drawq

Re: Is there a way to integrate spritesheets?

Posted: Thu Sep 29, 2011 9:11 pm
by kraftman
Yeh my bad. I was clearly not awake when I read your question.