NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

How to Build a Working Real-Time Analog Clock in Scratch

📌 What you will learn

Multiply current second/minute by 6° and hour by 30°.

Minimal Working Block Recipe

Multiply current second/minute by 6° and hour by 30°.

Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel.

Build a Working Real-Time Analog Clock script
  1. second hand: point in direction (current [second] * 6)
  2. minute hand: point in direction (current [minute] * 6)
  3. hour hand: point in direction ((current [hour] * 30) + (current [minute] * 0.5))

Try it: Accurate live clock synced to the user’s computer.

Debugging Checklist & Next Steps

If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop.

Related Deep-Dive Guide Explore full mechanics and variations. Learn more → All 120 Scratch How-To Recipes Return to the reverse lookup index. Learn more →

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.