Discuss Scratch

kpoovakan
Scratcher
100+ posts

So someone asked me how to create a timer...

Someone asked me how to code a timer. I needed to use Scratchblocks for this so making a Scratch project tutorial wouldn't really work. I don't know if this is in the wrong forum, though. I will be closing this topic as soon as I can.

To make a timer:
Let's say our timer will be for 60 seconds.
Create a new variable called “timer” and add this script to the Stage Area:
when green flag clicked
show variable [timer v]
set [timer v] to [60]
repeat until <[timer]=[0]>
wait [1] secs
change [timer v] by [-1]
end
That's how to create a timer.
Let me know if you have any questions!
Spentiline
Scratcher
100+ posts

So someone asked me how to create a timer...

Yes, this is not the right place for this. However, you can head to this site and type scratchblocks there. Once you're done, you can export it as an SVG file so that you can upload it into a Scratch project.

Last edited by Spentiline (Aug. 8, 2023 17:44:49)

kpoovakan
Scratcher
100+ posts

So someone asked me how to create a timer...

Spentiline wrote:

Yes, this is not the right place for this. However, you can head to this site and type scratchblocks there. Once you're done, you can export it as an SVG file so that you can upload it into a Scratch project.
ok
kpoovakan
Scratcher
100+ posts

So someone asked me how to create a timer...

I am closing this forum thread now.

Powered by DjangoBB