aboutsummaryrefslogtreecommitdiff
path: root/assets.lua
diff options
context:
space:
mode:
Diffstat (limited to 'assets.lua')
-rw-r--r--assets.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/assets.lua b/assets.lua
index a0217a6..d5c9af1 100644
--- a/assets.lua
+++ b/assets.lua
@@ -296,6 +296,9 @@ function loadAnimation(pic, quad, frames, limit, w, h)
end
end
function playAnimation(ani, loop, x, y, r, s, xo, yo, sp)
+ if ani == v2.c.idle.mask then
+ ani.f = v2.c.idle.f
+ end
if ani.fs[math.floor(ani.f)] ~= nil then
love.graphics.draw(ani.pic, ani.fs[math.floor(ani.f)], x, y, r, s, s, xo, yo)
end