From f7c70cec2946b25ca050796d7c9160044717ce29 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Wed, 20 Apr 2016 10:48:12 -0700 Subject: Added timer for messages Now they appear on their own. Start menu no longer activates messages --- system.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system.lua') diff --git a/system.lua b/system.lua index 24ac76c..d2639b4 100644 --- a/system.lua +++ b/system.lua @@ -3,6 +3,10 @@ function drawLayer(id) end function updateSystem(dt) timeNoti(dt) + if time >= msgstime[msg.c] and msgssent < msg.c then + sendMessage(1, msgs[msg.c]) + msgssent = msgssent + 1 + end end function drawSystem() love.graphics.setBackgroundColor(0, 128, 128) -- cgit