diff --git a/sonic-radiance.love/scenes/overworld/actors/parent.lua b/sonic-radiance.love/scenes/overworld/actors/parent.lua index 7b27ac1..5a237a7 100644 --- a/sonic-radiance.love/scenes/overworld/actors/parent.lua +++ b/sonic-radiance.love/scenes/overworld/actors/parent.lua @@ -8,6 +8,12 @@ function Parent:new(world, type, x, y, w, h, isSolid) self.charset = self.world.scene.charsetManager end +function Parent:update(dt) + self.depth = -self.y + Parent.super.update(self, dt) + self.depth = -self.y +end + function Parent:draw() love.graphics.rectangle("fill", math.floor(self.x), math.floor(self.y), self.w, self.h) end