Animation: remove once the animation is complete

This commit is contained in:
Erkki Seppälä 2014-10-19 04:48:59 +03:00
parent f80337e1a5
commit 7cc7ec207d

View file

@ -41,5 +41,8 @@ Animation = Class{
update = function(self, dt)
self.curFrame = self.curFrame + dt * self.frames.fps
if self.curFrame >= self.frames.numFrames then
self:delete()
end
end;
}