diff options
author | Jorge Lopez Seijas <jorginho@riseup.net> | 2016-11-28 20:53:37 +0100 |
---|---|---|
committer | Jorge Lopez Seijas <jorginho@riseup.net> | 2016-11-28 20:53:37 +0100 |
commit | 2e22d0930af0ff265afcee557e9c2ac1f8f1d354 (patch) | |
tree | 5708d4096685759625e4bdfbda5f032c5208f882 | |
parent | 5d090bba95a235569189f345caad8556ecde5220 (diff) |
Minor fix in animation.lua
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua index 8d955d3..f432a5a 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua @@ -11,10 +11,13 @@ function animationModule.animation(dt) game = { animation = function(start, frames, loop, restart) - if restart == true then + --[[if restart == true then start = start - start + 1 elseif restart == false or restart == nil then start = start + end--]] + if restart == true then + start = 1 end if math.floor(start) > frames then if loop > 0 then |