How to Make a Real-Time Wall Clock in Scratch | Step-by-Step Scratch Tutorial

How to Make a Wall Clock in Scratch | Easy scratch Tutorial | Learn Step by Step by Kodex Academy

Introduction – Real-Time Wall Clock in Scratch

If you’ve ever wondered how to make a real-time wall clock in Scratch, you’re in the right place! In this step-by-step Scratch tutorial, we’ll show you how to build a fully functional analog clock that actually keeps time — with moving hour, minute, and second hands that tick just like a real one. ⏰

This project is perfect for beginners learning Scratch programming or anyone curious about how to combine creativity with coding. You’ll discover how to use Scratch’s motion and sensing blocks, apply simple math for rotations, and create animations that bring your clock to life.

Whether you’re searching for an easy Scratch game tutorial, want to explore Scratch programming for animations, or simply wish to make a fun Scratch project, this wall clock tutorial is a great way to enhance your skills while having fun.

By the end, you’ll not only have a beautiful analog ticking clock but also a deeper understanding of how to make games and animations in Scratch using real-world logic.

🎥 Watch the complete tutorial on YouTube:
👉 How to Make a Wall Clock in Scratch | Easy Scratch Tutorial | Learn Step by Step

What You’ll Learn in This Scratch Tutorial

In this blog, we’ll cover:

  • How to make a clock in Scratch that updates every second
  • How to use Scratch sensing blocks to get the current time
  • The math behind converting time into angles for clock hands
  • How to make your clock look realistic and animated
  • Enhancements like digital display, ticking sound, and smooth animation

Scratch Coding – How to Make a Real-Time Wall Clock

Scratch is a visual programming platform developed by MIT that lets you create games, animations, and interactive stories using simple drag-and-drop blocks.
It’s perfect for kids, beginners, and educators who want to learn programming logic through creativity.

Step 1: Setting Up the Scratch Project

  1. Open the Scratch editor.
  2. Delete the Cat Sprite (the default one).
  3. Upload or draw your Wall Clock Base sprite.
    • You can draw a circle for the clock’s face.
    • Adjust its size and position it at the center (x: 0, y: 0).

Tip: Use the Costume Editor to make sure the clock’s center aligns with the middle of the stage — this ensures your hands rotate correctly.

Step 2: Creating the Clock Hands

You’ll need three new sprites:

  • Second Hand (Red)
  • Minute Hand (Black)
  • Hour Hand (Blue)

For each hand:

  1. Click “Paint New Sprite”.
  2. Draw a straight line from the center.
  3. Adjust thickness (use 2–10 pixels) depending on visibility.
  4. Rename each sprite accordingly.

Understanding the Math Behind the Clock

Clock HandTime UnitDegrees per UnitFormula Used
Second Hand60 seconds6° per secondseconds × 6
Minute Hand60 minutes6° per minuteminutes × 6
Hour Hand12 hours30° per hourhours × 30 + minutes × 0.5

This simple math helps us turn real-world time into Scratch angles, creating a real-time working clock.

Step 3: Coding the Wall Clock Base

Let’s start with the Wall Clock sprite.
We’ll ensure it always stays in the background.

Code Block:

when green flag clicked
go to x: 0 y: 0
go to back layer

This keeps the clock face fixed in the background while the hands move on top.

Step 4: Coding the Second Hand

The second hand moves 6 degrees every second (since 360° / 60 = 6°).

Logic:

  • 1 full circle = 360 degrees
  • 60 seconds = 1 full circle
  • Each second = 6 degrees rotation

Code Block:

when green flag clicked
forever
    point in direction (current [second v] * 6)
    wait (1) seconds
end

This makes your second hand tick every second — just like a real clock!

Step 5: Coding the Minute Hand

Similarly, the minute hand moves 6 degrees per minute.

Code Block:

when green flag clicked
forever
    point in direction (current [minute v] * 6)
    wait (1) seconds
end

You can also make it move smoothly by dividing the degrees and updating every second:

Enhanced Smooth Version:

when green flag clicked
forever
    point in direction ((current [minute v] * 6) + (current [second v] * 0.1))
    wait (1) seconds
end

Step 6: Coding the Hour Hand

Each hour hand movement equals 30 degrees (360° / 12 = 30°).
But to make it accurate, we must also account for minutes — every minute adds 0.5° (30° / 60).

Code Block:

when green flag clicked
forever
    point in direction ((current [hour v] * 30) + (current [minute v] * 0.5))
    wait (60) seconds
end

This ensures the hour hand moves gradually instead of jumping every hour.

Step 7: Add a Backdrop and Digital Display

To make the clock visually appealing:

  • Choose a wall backdrop (like a living room or school wall).
  • Add a new text sprite that shows the digital time.

Digital Display Code:

when green flag clicked
forever
    set [time v] to (join (join (current [hour v]) :) (join (current [minute v]) (join : (current [second v]))))
    say (time)
    wait (1) seconds
end

This will display the real-time digital clock along with your analog one.

Step 8: Add a Ticking Sound (Optional Enhancement)

You can make your Scratch clock tick every second using sound effects.

  1. Go to the Sounds tab and choose “Click” or “Tick”.
  2. Add this code to the second hand:
when green flag clicked
forever
    play sound [click v]
    wait (1) seconds
end

Now your wall clock ticks realistically every second! 🎶

Step 9: Adding Animation and Design Enhancements

You can make your Scratch clock project even cooler with these enhancements:

Smooth Rotation Animation

Instead of jumping 6° each second, make hands rotate smoothly:

when green flag clicked
forever
    repeat (6)
        turn clockwise (1) degrees
        wait (0.166) seconds
    end
end

Add Background Transitions

Change backdrops every hour or based on time of day:

when green flag clicked
forever
    if <(current [hour v]) < [12]> then
        switch backdrop to [Morning v]
    else
        switch backdrop to [Night v]
    end
    wait (60) seconds
end

Final Demo – Watch the Full Tutorial!

🎥 Watch the complete tutorial here by Kodex Academy:
👉 How to Make a Wall Clock in Scratch | Easy Scratch Tutorial | Learn Step by Step

Learn from start to finish how to:

  • Create and design sprites
  • Understand clock rotation logic
  • Add real-time updates
  • Animate hands using Scratch coding

Key Takeaways

✅ You learned how to:

  • Build a real-time wall clock in Scratch
  • Use sensing blocks to fetch live time
  • Convert time to degrees for rotation
  • Add animations and sound effects
  • Create a hybrid digital-analog clock

Bonus Enhancement

Make a Digital + Analog Hybrid Clock

  • Combine both versions — the analog ticking hands and a digital display on the same screen.
  • You can even show AM/PM format:
when green flag clicked
forever
    set [hour v] to (current [hour v])
    if <(hour) > [12]> then
        change [hour v] by (-12)
        set [period v] to [PM]
    else
        set [period v] to [AM]
    end
    say (join (join (hour) :) (join (current [minute v]) (join : (current [second v]) (join " " (period))))))
    wait (1) seconds
end

Advanced Ideas to Try

Once you’ve built your clock, try these Scratch project enhancements:

  1. Add a Date Display: Show the current date using the current [date] block.
  2. Customize Themes: Add backgrounds that change based on time (morning, evening, night).
  3. Countdown Timer: Modify the clock to become a countdown stopwatch.
  4. Alarm Clock: Play a sound when a specific time is reached.
  5. Weather Integration (via Cloud Variables): Display real-time weather next to the clock.

Conclusion

Congratulations! 🎉 You’ve just built a real-time analog wall clock in Scratch that ticks every second — complete with moving hands for hours, minutes, and seconds. Through this fun project, you learned how to use Scratch programming blocks like Motion, Sensing, and Control to bring real-world concepts to life.

This project is more than just a clock — it’s a great example of how creative coding in Scratch can help you understand time, math, and animation in an interactive way. Whether you’re exploring Scratch programming games, animations, or beginner Scratch tutorials, this project enhances both your logic and creativity.

Keep experimenting — try adding digital displays, alarm sounds, or even weather-based backgrounds to make your clock more dynamic. The possibilities in Scratch programming are endless when you mix imagination with code!

Call to Action

  1. Don’t forget to check out the full video tutorial: How to Make a Wall Clock in Scratch | Easy scratch Tutorial | Learn Step by Step by Kodex Academy
  2. Like, comment & share the video
  3. Visit kodexacademy.com
  4. subscribe to the Kodex Academy YouTube channel for deeper Scratch content.

Happy coding with Kodex Academy! 🚀

Learn More with Kodex Academy

At Kodex Academy, we’re passionate about helping students learn coding in creative ways. This project teaches more than Scratch—it empowers young minds to build tools that work in the real world.

Explore more:

Stay updated with new content, free tutorials, and coding challenges!

Further Reading & Links

Recent Posts

How to Make a Health Bar Animation in Scratch | Healthy vs Junk Food Game Tutorial (Full Step-by-Step Guide)

How to Make a Health Bar in Scratch | Healthy vs Junk Food Game | Scratch Animation | Kodex Academy Creating fun and engaging games in Scratch not only helps kids learn coding, but also encourages...

How to Make a Basketball Game in Scratch | Full Tutorial (Moving Hoop + Jumping Ball + Score)

Are you ready to create an exciting basketball game in Scratch with a moving hoop, jumping player, and real-time scoring? This step-by-step Scratch game tutorial is perfect for beginners who want to...

How to Make 3D Shapes in Scratch – Draw Cubes, Pyramids & Cylinders Using Pen Extension

If you’ve ever wondered how to make 3D shapes in Scratch or create 3D geometry using code, you’re about to dive into a creative world of math, animation, and programming fun. Learn how to make...

How to Make Flappy Bird Game in Scratch | Coin Collection Game in Scratch | Scratch Coding for Beginners

Have you ever wondered how people create fun games like Flappy Bird without writing a single line of code? With Scratch programming, anyone — from complete beginners to young creators — can build...

How to Make Day & Night Animation in Scratch (Step-By-Step Full Tutorial)

If you’ve ever wondered how to make day and night animation in Scratch or wanted to bring your stories and games to life with realistic sky transitions, this tutorial is perfect for you! Scratch is...

How to Make a Shooting Game in Scratch | Jet Shooting Game Tutorial (Step-By-Step Guide)

Introduction - Jet Shooting Game in Scratch Scratch Tutorial Game | Scratch Game Tutorial Easy | Scratch Programming Games | Jet Shooting Game in Scratch Want to build your first arcade-style...

Top 5 Animations in Scratch | How to Make Your Animations Smooth in Scratch

In this step-by-step guide, we explore the Top 5 animations in Scratch games that will make your projects smoother, interactive, and fun to play. You’ll learn: ✅ How to make a sprite jump ✅ How to...

How to Make a Tic-Tac-Toe Game in Scratch – Easy Scratch Tutorial for Beginners

We are going to build the all-time favourite logic game in Scratch: Tic‐Tac‐Toe. In this game two players take turns making X and O on a 3×3 grid. The first one to get three in a row — across, down or...

How to Make a Real-Time Wall Clock in Scratch | Step-by-Step Scratch Tutorial

If you’ve ever wondered how to make a real-time wall clock in Scratch, you’re in the right place! In this step-by-step Scratch tutorial, we’ll show you how to build a fully functional analog clock...

How to Make a 3-Level Platformer Game in Scratch | Mario-Style Hen Adventure Game

Have you ever wanted to build your own Mario-style platformer game in Scratch? This step-by-step guide will walk you through how to make a 3-level platformer game in Scratch — featuring a jumping hen...

How to Make a Math Racing Game in Scratch | Game Concepts and Complete Tutorial

In this tutorial, you’ll learn to build a Math Racing Game in Scratch. Players solve math problems to move their character forward; wrong answers benefit the opponent. It’s a race of speed, accuracy...

How to make Memory Skill Game in Scratch | Card Matching Game in Scratch – Part 2 | Step-by-Step Coding

In this tutorial you'll learn how to make memory skill game in Scratch / card matching game in Scratch. This is a great beginner‑to‑intermediate project for scratch tutorial game, scratch programming...

How to make a Card Matching Game in Scratch | Memory Skill Game in Scratch – Part 1 | Step-by-Step Coding

In this Scratch tutorial, we'll walk you through how to make a card matching game in Scratch, also known as a memory game or skill game. This is a popular beginner project that introduces essential...

Create a Quiz Game in Scratch | Spelling Test in Scratch | Picture Identification in Scratch

Want to make learning spelling fun, visual, and interactive? In this Scratch tutorial, you'll learn how to make a spelling quiz game in Scratch using picture identification, text-to-speech, and...

How to make a Double Jump Game in Scratch | Platformer game in Scratch | Step by Step Coding

How to make a Double Jump Game in Scratch. Scratch is a fantastic platform for beginners to learn programming by making games, animations, and interactive stories. Among the many kinds of games...

How to Use Variables in Scratch | Variable Blocks in Scratch | Complete Tutorial

Introduction: Variable Blocks in Scratch Whether you’re just getting started with Scratch programming or looking to take your projects to the next level, understanding variables and lists is...

How to Make Earth Revolve Around the Sun in Scratch: A Complete Tutorial & Enhancements

Animating Earth revolving around the Sun is a classic beginner/intermediate Scratch animation project. It combines trigonometry (sine & cosine), variables, loops, and visual scripting. Kids can learn...

How to Make a Game in Scratch | Snake Game in Scratch | Step-by-Step Game Coding

In this tutorial, we’ll build a Snake Grid style game in Scratch step by step (very similar to the Kodex Academy example). By doing this, you’ll cover many of the core Scratch building blocks. We will...
Scroll to Top