Is there a way to integrate spritesheets?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Giantfishy
Prole
Posts: 3
Joined: Wed Sep 28, 2011 8:48 am
Location: New Zealand

Is there a way to integrate spritesheets?

Post 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
User avatar
kraftman
Party member
Posts: 277
Joined: Sat May 14, 2011 10:18 am

Re: Is there a way to integrate spritesheets?

Post by kraftman »

User avatar
Giantfishy
Prole
Posts: 3
Joined: Wed Sep 28, 2011 8:48 am
Location: New Zealand

Re: Is there a way to integrate spritesheets?

Post by Giantfishy »

Awesome, thanks! :D
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Is there a way to integrate spritesheets?

Post 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
User avatar
kraftman
Party member
Posts: 277
Joined: Sat May 14, 2011 10:18 am

Re: Is there a way to integrate spritesheets?

Post by kraftman »

Yeh my bad. I was clearly not awake when I read your question.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests