From e316bd9c66ab29b424b55003b6565cbf7a7ede45 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 14 Sep 2017 21:09:28 +0200 Subject: Added crude way to toggle Sprite drawing --- not/Sprite.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'not/Sprite.lua') diff --git a/not/Sprite.lua b/not/Sprite.lua index a4346f6..33b8ac8 100644 --- a/not/Sprite.lua +++ b/not/Sprite.lua @@ -101,7 +101,7 @@ function Sprite:draw (debug) local draw_y = approx(y) local draw_x = math.floor(x) - if i then + if i and not self.hidden then love.graphics.setColor(255,255,255,255) if q then love.graphics.draw(i, q, draw_x, draw_y, angle, scaleX, scaleY, self:getOffset()) -- cgit v1.1