summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-21 23:30:34 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-21 23:30:34 -0300
commit4c2962342419d22095e2ef108b0626f3ba596bae (patch)
treeee139bb4ce1534b010df6e714758184ca3ff7865
parente05c0137e0d03187b857b36c6b2abb4f041205cc (diff)
Minor fix to recover the last frame on animations
-rw-r--r--test0/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test0/main.lua b/test0/main.lua
index 461137d..0edc8e5 100644
--- a/test0/main.lua
+++ b/test0/main.lua
@@ -167,11 +167,11 @@ function love.update(dt)
}
}
- if character.bola.spriteStand.start >= frames.bola.spriteStand then
+ if character.bola.spriteStand.start > frames.bola.spriteStand + 1 then
character.bola.spriteStand.start = 1
end
- if character.bola.spriteWalk.start >= frames.bola.spriteWalk then
+ if character.bola.spriteWalk.start > frames.bola.spriteWalk + 1 then
character.bola.spriteWalk.start = 1
end