ship01 = love.graphics.newImage("images/ship01.png")
ship02 = love.graphics.newImage("images/ship02.png")
function player_draw()
if love.keyboard.isDown("w") or
love.keyboard.isDown("up") then
player.image = ship02
else
player.image = ship01
end
So when you go forward fire comes out of back. I wanted to have the fire move more which I have done in ship03, 04, and 05 so how can I have when you're going forward it cycles from 02 -05 and back again. I've tried Google and here with no help.
tl;dr I need a walk cycle, I cant find any tutorials.
The reason you aren't finding a tutorial is that generally, people don't code this kind of thing from scratch. A few libraries out there can do the job. Personally, I prefer anim8: https://github.com/kikito/anim8