Page 1 of 1
AnAL help! (oh god ._.)
Posted: Sun Dec 08, 2013 2:49 pm
by Miken1
(Jesus why do you guys need to name a library AnAL, why!)
I need a breif explaination on how the different functions works for example.
What should I do if I want to draw the second row of animations in this megaman sprite sheet
[]
Posted: Sun Dec 08, 2013 3:19 pm
by bekey
-snip-
Re: AnAL help! (oh god ._.)
Posted: Sun Dec 08, 2013 5:02 pm
by Miken1
So so you recommend to make seperate sheets for each animation?
One for jumping and one for walking etc...
[]
Posted: Sun Dec 08, 2013 5:45 pm
by bekey
-snip-
Re: AnAL help! (oh god ._.)
Posted: Sun Dec 08, 2013 5:57 pm
by Miken1
Thank you for the help!
Re: AnAL help! (oh god ._.)
Posted: Mon Dec 09, 2013 7:19 pm
by pielago
this going down
Code: Select all
function love.load()
require 'anal'
k={}
k.x=15
k.y=10
k.w=50
k.h=50
k.speed=200
fF =love.graphics.newImage('f.png') -- 4 sprites going down 120x50 f.png
walkF=newAnimation(fF,30,50,0.1,0)
facing ='front'
end
function love.draw()
if facing== 'front' then
walkF:draw(k.x,k.y)
end
end
function love.update(dt)
if love.keyboard.isDown("s") then
k.y=k.y+k.speed*dt
walkF:update(dt)
facing ='front'
end
end
function love.keyreleased(key, unicode) --reset it
if key == 's' then
walkF=newAnimation(fF,30,50,0.1,0)
facing ='front'
end
end