Page 1 of 2
AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 10:54 am
by Deluxo
Hello. Im new to lua and love2d.
Things gets tricky when i need to play specific sequence of animation on key events.
function love.update(dt)
anim:update(dt)
world:update(dt)
if love.keyboard.isDown("d") then
bodies[1]:applyForce(800, 0)
anim:play() <---- i need to play specific frames and loop them. is it possible? if no, maybe somebody could recommend different way to play animation when character moves.
Thanks in advance!
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 11:31 am
by nevon
Give your entity a state, and then play an animation depending on the state of your entity. So you could have a walking state, a standing state, a jumping state, etc. and then play the corresponding animation.
See my attached file for an example.
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 11:54 am
by Deluxo
Guess I will need to make avatar OBEY too...
Thanks man! I thought forums are quite dead. Btw does somebody know whats going on with Love lately?
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 12:11 pm
by Robin
Deluxo wrote:Btw does somebody know whats going on with Love lately?
A lot is going on. There have been some changes in the dev team, LÖVE 0.7.0 will probably be released before the end of next century, and the community is as active as ever.

Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 2:12 pm
by Deluxo
Well everything you said sounds very sarcastic... Can you confirm what you sir wrote up there?
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 2:28 pm
by kikito
I confirm that the community is active. I've poked it, it was active.
A bit more seriously (but not too much): It is possible to follow the development in quasi-realtime by going to
its bitbucket page. You can even subscribe to
its atom feed, if you are into that kind of thing.
It seems that development has slowed down a bit during last 2 months or so - I'm guessing due to exams and summer holidays.
You may notice that the 0.7.0 section has been in the changelog for a month already. In theory it should not take much longer to have a new version.
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 5:55 pm
by Luiji
Since it seems this topic has been resolved, I'm going to go a bit off-topic for a moment.
Are there any of us that don't go to school (whether K-12 or college)?
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 5:57 pm
by bartbes
What the hell? Don't answer that!
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 6:00 pm
by Luiji
Ahem, I'm not asking for ages, I'm just asking if anybody's actually gotten to the point in which they're past college.
If not, it would really explain a lot about the immaturity I sometimes find here.
Re: AnAl Animation in side-scrolling game
Posted: Thu Jul 22, 2010 6:15 pm
by zer0wolf
I graduated from college three years ago and I like making Love

Admittedly, I'm not very experienced
