I want to make a timer similar to this one and when the timer finishes, it changes scene.
@JustToLookLegit Here’s a start. I’ll leave the rest to you. If you have questions, just ask.
EDIT: Updated the code.
supportedOrientations(LANDSCAPE_ANY)
function setup()
cnt=0
fontSize(30)
end
function draw()
background(40, 40, 50)
fill(0)
rect(100,300,600,80)
fill(255)
text(string.format("%d:%02d",cnt//100,cnt%100),650,350)
fill(128)
rect(100,300,600,10)
fill(0,255,0)
rect(100,300,cnt,10)
if cnt<600 then
cnt=cnt+1
end
end