diff --git a/sonic-radiance.love/scenes/overworld/actors/parent.lua b/sonic-radiance.love/scenes/overworld/actors/parent.lua index fe4c4a8..4f73b77 100644 --- a/sonic-radiance.love/scenes/overworld/actors/parent.lua +++ b/sonic-radiance.love/scenes/overworld/actors/parent.lua @@ -29,6 +29,7 @@ function Parent:initCharset() self.cantTurn = false self.isTurning = false self.isFast = false + self.largeAnim = false end function Parent:setCharset(charset, charId, cantWalk) @@ -45,15 +46,18 @@ function Parent:drawCharset(charset, charId) love.graphics.setColor(1,1,1,0.5) self.assets.images["shadow"]:draw(x + 1, y + 11) utils.graphics.resetColor() - - if (not self.isTurning) then - if (self:isMoving() and (not self.cantWalk)) then - self.charsetManager:drawMoving(self.charset, self.charId, self.charDir, x, y - z, self.isFast) - else - self.charsetManager:drawStanding(self.charset, self.charId, self.charDir, x, y - z, self.isFast) - end + if (self.largeAnim) then + self.charsetManager:drawLargeAnim(self.charset, self.charId, self.charDir, x, y - z, self.isFast) else - self.charsetManager:drawTurning(self.charset, self.charId, x, y - z, self.isFast) + if (not self.isTurning) then + if (self:isMoving() and (not self.cantWalk)) then + self.charsetManager:drawMoving(self.charset, self.charId, self.charDir, x, y - z, self.isFast) + else + self.charsetManager:drawStanding(self.charset, self.charId, self.charDir, x, y - z, self.isFast) + end + else + self.charsetManager:drawTurning(self.charset, self.charId, x, y - z, self.isFast) + end end end