Page 1 of 1
I need help about animation
Posted: Wed Mar 02, 2011 3:25 pm
by asurakyo
Who can tell me how to begin animating?Thinks
Re: I need help about animation
Posted: Wed Mar 02, 2011 3:44 pm
by Motig
Check out this library made by Bartbes:
http://love2d.org/wiki/AnAL
Re: I need help about animation
Posted: Wed Mar 02, 2011 8:51 pm
by BlackBulletIV
If you're talking about the tweening kind, EmmanuelOga's made a tweening library:
http://love2d.org/forums/viewtopic.php?f=5&t=2502
Re: I need help about animation
Posted: Thu Mar 03, 2011 12:23 pm
by asurakyo
I can't run the example
attempt to call global 'newAnimation' (a nil value)
Re: I need help about animation
Posted: Thu Mar 03, 2011 3:01 pm
by Robin
asurakyo wrote:I can't run the example
attempt to call global 'newAnimation' (a nil value)
You need to download the library and require it
I think it was
It might be "animation" instead though.
Re: I need help about animation
Posted: Thu Mar 03, 2011 4:56 pm
by asurakyo
I didn't find "love.graphics.newAnimation()" in v0.7.1.
Look at the following code,I can not find where is wrong...
Or I'm missing something?
Code: Select all
function love.load()
local img = love.graphics.newImage("explosion.png")
anim = newAnimation(img, 96, 96, 0.1, 0)
end
function love.update(dt)
-- Updates the animation. (Enables frame changes)
anim:update(dt)
end
function love.draw()
-- Draw the animation at (100, 100).
anim:draw(100, 100)
end
http://love2d.org/wiki/AnAL
Re: I need help about animation
Posted: Thu Mar 03, 2011 5:01 pm
by asurakyo
Robin wrote:asurakyo wrote:I can't run the example
attempt to call global 'newAnimation' (a nil value)
You need to download the library and require it
I think it was
It might be "animation" instead though.
I think no need to download any libraries
Re: I need help about animation
Posted: Thu Mar 03, 2011 5:01 pm
by bartbes
Yes, you do need to download AnAL, because animations are no longer a part of love.
Btw, I'd prefer it if you didn't double post.
Re: I need help about animation
Posted: Fri Mar 04, 2011 2:36 am
by asurakyo
wow……
Problem has been solved!!!
Thanks,everybody.