how to make animation?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
poopooheadcow
Prole
Posts: 11
Joined: Fri Sep 07, 2012 9:59 am
Location: Australia

how to make animation?

Post by poopooheadcow »

How do you make animation like when you press right to make your person go right it will instead of just sliding to the right it will look like its walking that way.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: how to make animation?

Post by Plu »

The simple way is to make a bunch of images, one for each step of the animation, and then rotate over them as the character moves.

There's also a number of libraries that can do this for you, like Anim8 and AnAL
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:13 am, edited 1 time in total.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: how to make animation?

Post by kikito »

Yes.
When I write def I mean function.
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: how to make animation?

Post by jjmafiae »

love.graphics.quads are the thing the libraries are using but the libraries makes it much easier :ultraglee:
User avatar
shatterblast
Party member
Posts: 136
Joined: Tue Dec 11, 2012 9:47 pm
Location: Dallas, Texas, USA

Re: how to make animation?

Post by shatterblast »

I'm hopelessly addicted to libraries. Will AnAL work with 0.9.0?

Come to think of it, I could just test 0.9.0 on my Windows system.
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:13 am, edited 1 time in total.
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: how to make animation?

Post by jjmafiae »

shatterblast wrote:I'm hopelessly addicted to libraries. Will AnAL work with 0.9.0?

Come to think of it, I could just test 0.9.0 on my Windows system.
no, they have to update it because they have changed the name for quads and some other things.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: how to make animation?

Post by Plu »

They kept the old Quad functions I believe, they just changed (and expanded) the underlying architecture. The library should keep working.
User avatar
shatterblast
Party member
Posts: 136
Joined: Tue Dec 11, 2012 9:47 pm
Location: Dallas, Texas, USA

Re: how to make animation?

Post by shatterblast »

Plu wrote:They kept the old Quad functions I believe, they just changed (and expanded) the underlying architecture. The library should keep working.
That is good to know. Backwards compatibility rocks out. :monocle:
Post Reply

Who is online

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