From ce2a89b29517de0969d42a021b70f47693953dff Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 1 May 2019 11:16:37 +0200 Subject: [PATCH] modules/world: fix scalling function actually adding the scaling would be nice. --- gamecore/modules/world/actors/actor2D.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamecore/modules/world/actors/actor2D.lua b/gamecore/modules/world/actors/actor2D.lua index e4dd584..b7b61ab 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -175,10 +175,14 @@ end function Actor2D:setSpriteScallingX(sx) local sx = sx or 1 + + self.sprite.sx = sx end function Actor2D:setSpriteScallingY(sy) local sy = sy or 1 + + self.sprite.sy = sy end function Actor2D:drawSprite(x, y, r, sx, sy, ox, oy, kx, ky)