Here is my code:
Code: Select all
IntroTimer = true
StartTimer = 0
function love.load()
Mainfont = love.graphics.newFont("Graphics/PixelFont.ttf", 22)
love.graphics.setBackgroundColor(255, 255, 255)
love.graphics.setColor(0, 0, 0)
love.graphics.setFont(Mainfont)
end
function love.update(dt)
if IntroTimer then
StartTimer = StartTimer + dt
end
end
function love.draw()
love.graphics.printf("Hey.", 20, 250, 458, "center")
love.graphics.printf(StartTimer, 10, 10, 300, "left")
end
Does anyone know/have any idea on how to make the timer just single seconds, or is that impossible?
Please help! Thank you!
-Dopplespots