summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_right.lua
blob: 38ba32748573a71840e3349bc4eac878d843a4e1 (plain)
1
2
3
4
5
6
game.walkRight = function(metaSprites, character, dt)
  character.position.x = character.position.x + (character.velocity * dt)
  game.animation(character.walk, dt)
  metaSprites.quad = character.walk[character.walk.currentFrame]
  character.scale.x = 1
end