diff --git a/sonic-radiance.love/scenes/overworld/actors/parent.lua b/sonic-radiance.love/scenes/overworld/actors/parent.lua index 95f0710..f808288 100644 --- a/sonic-radiance.love/scenes/overworld/actors/parent.lua +++ b/sonic-radiance.love/scenes/overworld/actors/parent.lua @@ -28,6 +28,7 @@ function Parent:initCharset() self.cantWalk = false self.cantTurn = false self.isTurning = false + self.isFast = false end function Parent:setCharset(charset, charId, cantWalk) @@ -39,6 +40,7 @@ end function Parent:drawCharset(charset, charId) local x, y = utils.math.floorCoord(self.x, self.y) y = y - 2 + local z = math.floor(self.z) love.graphics.setColor(1,1,1,0.5) self.assets.images["shadow"]:draw(x + 1, y + 11) @@ -46,12 +48,12 @@ function Parent:drawCharset(charset, charId) if (not self.isTurning) then if (self:isMoving() and (not self.cantWalk)) then - self.charsetManager:draw(self.charset, self.charId, self.charDir, x, y) + self.charsetManager:draw(self.charset, self.charId, self.charDir, x, y - z, self.isFast) else - self.charsetManager:drawStanding(self.charset, self.charId, self.charDir, x, y) + 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) + self.charsetManager:drawTurning(self.charset, self.charId, x, y - z, self.isFast) end end