You still need to post more information. Preferrably screenshots and code. Without it one can only guess what’s wrong. Maybe you have rotated the node so it stretches beyond Z -1 and 1?
function init(self)
self.timer = 60*60*4 -- in seconds
end
function final(self)
end
function update(self, dt)
if self.timer > 0 then
self.timer = math.max(self.timer - dt, 0) -- make sure it doesn't go below 0
gui.set_text(gui.get_node("my_shift_ends"), "Shift ends in "..tostring(self.timer))
else
-- gameover!!!
end
end