reduce animation framerate
This commit is contained in:
parent
998fbe485a
commit
be5154ded3
|
@ -50,7 +50,7 @@ anis={
|
||||||
}
|
}
|
||||||
|
|
||||||
function drawActor(self)
|
function drawActor(self)
|
||||||
self.spr=self.ani[(((t)//3)% #self.ani)+1]
|
self.spr=self.ani[(((t)//4)% #self.ani)+1]
|
||||||
local flip
|
local flip
|
||||||
if self.isFlipped then flip = 1 else flip = 0 end
|
if self.isFlipped then flip = 1 else flip = 0 end
|
||||||
spr(self.spr, self.x, self.y, 0, 1, flip)
|
spr(self.spr, self.x, self.y, 0, 1, flip)
|
||||||
|
|
Loading…
Reference in a new issue