diff options
author | Jorge Lopez Seijas <jorginho@riseup.net> | 2016-11-28 20:53:37 +0100 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-11-29 17:39:24 -0300 |
commit | 13f8589c8879382989ef1696d72ed437805ec399 (patch) | |
tree | d1398ccadfb73689729df39ab188f9fd505d34bb /src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts | |
parent | 97ee8ee8489521c78b5f314fed44d32886db6fe7 (diff) |
Minor fix in animation.lua
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts')
-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 |