how come this isn’t working?
if self.timer == 3 then
print(“test”)
end
I have self.timer = 0 in the init function and
this in the update function
if self.timer >= 0 then
self.timer = math.max(self.timer + dt, 0)
gui.set_text(gui.get_node(“my_text_node”), tostring(self.timer))
end
if self.timer == 3 then
print(“test”)
end
this works btw but not the is equal to
if self.timer >= 3 then
print(“test”)
end