Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a clock in scratch
- 6-_-5
-
Scratcher
12 posts
How to make a clock in scratch
I am trying to figure out a how to make a clock in Scratch
Can you please help me?
Sincerely,
6-_-5
Can you please help me?
Sincerely,
6-_-5
- PizzaAddict4Life
-
Scratcher
1000+ posts
How to make a clock in scratch
Are you wanting to make a digital clock or an analog clock? Digital is where it says 12:34 and analog is where it is has two hands, each pointing in a direction.
And if you want a digital clock, do you want to use the 12-hour clock or the 24-hour clock?
And if you want a digital clock, do you want to use the 12-hour clock or the 24-hour clock?
Last edited by PizzaAddict4Life (Jan. 13, 2021 14:57:18)
- BELOVEDROOSTER
-
Scratcher
1 post
How to make a clock in scratch
I think I can help you with that.
https://scratch.mit.edu/projects/473374264/ here is a tutorial on clocks that I made. Click “See inside” to view the tutorial. If this does not help, I need to know what type of clock you want (What does it look like? E.X. Does it use variables? If so, how many? E.T.C)
https://scratch.mit.edu/projects/473374264/ here is a tutorial on clocks that I made. Click “See inside” to view the tutorial. If this does not help, I need to know what type of clock you want (What does it look like? E.X. Does it use variables? If so, how many? E.T.C)
- 6-_-5
-
Scratcher
12 posts
How to make a clock in scratch
I need the clock that is not digital but the clock made by machines
not the digital one.
not the digital one.
- deck26
-
Scratcher
1000+ posts
How to make a clock in scratch
So you mean analog with an hour hand and a minute hand?
Minute hand is easy. Make the costume so the hand is pointing upwards and the centre is at the point you want the hand to rotate around. Then the current minute
The hour hand is slightly more complicated as it moves 30 degrees within an hour so you can't just use the current hour. So every 2 minutes it moves another degree.
So assuming the hour value is 0 to 11 (you can subtract 12 for hours 12 to 23) the hour hand points in the direction
30 * current-hour + (0.5 * current minute)
Minute hand is easy. Make the costume so the hand is pointing upwards and the centre is at the point you want the hand to rotate around. Then the current minute
(current [minute v])multiplied by 6 gives you the angle for the hand (360 degrees represents 60 minutes). Scratch will interpret anything over 180 degrees as the value minus 360 but that doesn't matter.
The hour hand is slightly more complicated as it moves 30 degrees within an hour so you can't just use the current hour. So every 2 minutes it moves another degree.
So assuming the hour value is 0 to 11 (you can subtract 12 for hours 12 to 23) the hour hand points in the direction
30 * current-hour + (0.5 * current minute)
Last edited by deck26 (Jan. 13, 2021 15:46:06)
- BlastikGames
-
Scratcher
100+ posts
How to make a clock in scratch
Well, there is 360 degrees in a circle, and a clock has 60 minutes, so…
(I have no idea why those red blocks are there they dont need to be there when you make a clock)
when green flag clickedThis would be used for the minute hand sprite. The hour hand would look like this:
forever
point in direction (((Minute) / (6)) v)
end
when green flag clickedIf you wanted a Seconds hand, just copy the minute hand but for seconds.
forever
point in direction (((Hour) / (30)) v)
end
(I have no idea why those red blocks are there they dont need to be there when you make a clock)
Last edited by BlastikGames (Jan. 13, 2021 16:12:59)
- CrankiCoda
-
Scratcher
1 post
How to make a clock in scratch
So you mean analog with an hour hand and a minute hand?I'd find that pointing the hands up messes up the time, so point them sideways(as in pointing at a 90 degree angle, with the ending tip of the hand in the middle of the canvas)
Minute hand is easy. Make the costume so the hand is pointing upwards and the centre is at the point you want the hand to rotate around. Then the current minute(current [minute v])multiplied by 6 gives you the angle for the hand (360 degrees represents 60 minutes). Scratch will interpret anything over 180 degrees as the value minus 360 but that doesn't matter.
The hour hand is slightly more complicated as it moves 30 degrees within an hour so you can't just use the current hour. So every 2 minutes it moves another degree.
So assuming the hour value is 0 to 11 (you can subtract 12 for hours 12 to 23) the hour hand points in the direction
30 * current-hour + (0.5 * current minute)
- cIoudyness
-
Scratcher
500+ posts
How to make a clock in scratch
this is a topic from January, so perhaps we don’t need to touch it anymore
but just because it’s already at the top, you can always offset the direction to how you like. it’s not a huge deal
but just because it’s already at the top, you can always offset the direction to how you like. it’s not a huge deal
- helloilol
-
Scratcher
9 posts
How to make a clock in scratch
idk how to make a analog clock, someone help me?
- AtThePro
-
Scratcher
54 posts
How to make a clock in scratch
Digital Clock :
when green flag clicked
forever
set [Seconds] to (current [second])
set [Minute] to (current [minute])
set [Hour] to (current [hour])
end
Last edited by AtThePro (Feb. 22, 2026 16:22:57)
- helloilol
-
Scratcher
9 posts
How to make a clock in scratch
no, just a digital one : https://scratch.mit.edu/projects/1281289626/
- helloilol
-
Scratcher
9 posts
How to make a clock in scratch
the scripts:
when green flag clicked
forever
set [Time v] to (join (current [hour v]) [:])(join (current [minute v]) (join [:] (current [second v])))
end
- AtThePro
-
Scratcher
54 posts
How to make a clock in scratch
no, just a digital one : https://scratch.mit.edu/projects/1281289626/It works fine , but you forgot the “seconds” thing
- kansea
-
Scratcher
500+ posts
How to make a clock in scratch
1. Don't necro. This thread is from 2021.
2. Here's an actual analog clock, although it's a 24-hour version: https://scratch.mit.edu/projects/1281881777/
2. Here's an actual analog clock, although it's a 24-hour version: https://scratch.mit.edu/projects/1281881777/
- Discussion Forums
- » Help with Scripts
-
» How to make a clock in scratch


