function love.load()
runningbunny=love.image.newImageData("NPCs\/BunnyRunning.png")
frames={}
for i = 1,runningbunny:getWidth()/32 do
frames[i]=love.image.newImageData(32,32):paste(runningbunny,0,0,(i-1)*32,0,32,32)
end
end
function love.draw()
for i = 1,#frames do
love.graphics.draw(frames[i],0,0)
love.graphics.print(i,0,32)
love.timer.sleep(10)
end
love.timer.sleep(10)
end
Nothing happens to the screen...
I want it to split an image into 32x32 pictures. on the X axis only, and then animate them in a loop.
I never understood the need for the AnAL library. Letting each game object store the quads it needs in a table, and simply have it draw the quad you want at every given time, is really simple. An automated way of creating the quads you want from any picture is also quite trivial.