summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test0/main.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test0/main.lua b/test0/main.lua
index 5919324..032cba8 100644
--- a/test0/main.lua
+++ b/test0/main.lua
@@ -158,12 +158,12 @@ function love.update(dt)
}
}
- while character.bola.spriteStand.start >= frames.bola.spriteStand do
- character.bola.spriteStand.start = character.bola.spriteStand.start - (frames.bola.spriteStand - 1)
+ if character.bola.spriteStand.start >= frames.bola.spriteStand then
+ character.bola.spriteStand.start = 1
end
- while character.bola.spriteWalk.start >= frames.bola.spriteWalk do
- character.bola.spriteWalk.start = character.bola.spriteWalk.start - (frames.bola.spriteWalk - 1)
+ if character.bola.spriteWalk.start >= frames.bola.spriteWalk then
+ character.bola.spriteWalk.start = 1
end
animation = {