fix: make sure that pauseAtEnd works as intended
This commit is contained in:
parent
1041688c8e
commit
88e4d2c36a
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ function Animator:update(dt)
|
||||||
if self.frameTimer > 1 then
|
if self.frameTimer > 1 then
|
||||||
self.frameTimer = 0
|
self.frameTimer = 0
|
||||||
if self.frame == self.animationData.endAt then
|
if self.frame == self.animationData.endAt then
|
||||||
|
if not (self.animationData.pauseAtEnd) then
|
||||||
self.frame = self.animationData.loop
|
self.frame = self.animationData.loop
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self.frame = self.frame + 1
|
self.frame = self.frame + 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue