"walk cycle"
Posted: Sun Dec 02, 2012 12:27 am
I want to have a "walk cycle" for a game I'm making, I have a ship... well here is the code
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.
Code: Select all
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
tl;dr I need a walk cycle, I cant find any tutorials.