(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
AnAL help! (oh god ._.)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: AnAL help! (oh god ._.)
So so you recommend to make seperate sheets for each animation?
One for jumping and one for walking etc...
One for jumping and one for walking etc...
Re: AnAL help! (oh god ._.)
Thank you for the help!
Re: AnAL help! (oh god ._.)
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
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest