{"id":64658,"date":"2024-08-19T16:58:28","date_gmt":"2024-08-19T22:58:28","guid":{"rendered":"https:\/\/www.codewizardshq.com\/?p=64658"},"modified":"2025-04-22T23:15:30","modified_gmt":"2025-04-23T05:15:30","slug":"how-to-make-a-timer-in-scratch","status":"publish","type":"post","link":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/","title":{"rendered":"How to Make a Timer in Scratch"},"content":{"rendered":"\n<p>Scratch is a fun and creative learning platform for kids who are curious about building games and applications. They can use their imagination to add and customize their projects.&nbsp;<\/p>\n\n\n\n<p><strong>In this tutorial, I\u2019ll show you how to make a timer in Scratch.<\/strong> We will code a countdown timer and a stopwatch. You can add these timers to existing projects or your new project for a dynamic experience.<\/p>\n\n\n\n<p><strong>To learn Scratch with the experts, join our top-rated <a href=\"https:\/\/www.codewizardshq.com\/scratch-coding-classes\/\">Scratch classes for kids<\/a>.&nbsp;<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-scratch\">What is Scratch?<\/h2>\n\n\n\n<p><strong><a href=\"https:\/\/scratch.mit.edu\/\" target=\"_blank\" rel=\"noreferrer noopener\">Scratch<\/a> is a drag-and-drop coding language that helps kids learn coding fundamentals as well as develop critical thinking, problem-solving, and logical reasoning skills.<\/strong><\/p>\n\n\n\n<p>It\u2019s a coding playground that teaches kids in a hands-on and accessible way. It\u2019s safe, fun, and completely free.<\/p>\n\n\n\n<p>Scratch is easy to access through any browser and has a supportive community where students can share and remix projects and games. It\u2019s one of the best ways, especially for young kids, to learn the foundations of programming.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-a-timer-in-scratch\">What is a timer in Scratch?<\/h2>\n\n\n\n<p><strong>Timers are a component of a program or game that measures time in specific intervals.&nbsp;<\/strong><\/p>\n\n\n\n<p>A timer can be used to delay actions, limit the duration of actions, or allow actions to continue for a total amount of time.<\/p>\n\n\n\n<p>You can add a timer to count up or count down. Timers can be used in various projects, from simple games to complex animations. Each project may require a different type of timer.<\/p>\n\n\n\n<p><strong>In Scratch, timers are used to control the execution of command blocks or schedule actions to occur at specific intervals.&nbsp;<\/strong><\/p>\n\n\n\n<p>Timers require a trigger to start or stop. For example, your timer may start when the green flag is clicked and stop once it reaches a certain amount of time. Or maybe your timer starts with a new level and stops when the sprite is clicked.<\/p>\n\n\n\n<p>Timers in Scratch can be created using custom variables or the built-in timer variable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-custom-variable\">Custom variable<\/h3>\n\n\n\n<p>You can create a timer in Scratch by creating a custom variable to store the time.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfVgORJyjwdW1x_zy0RNhecZqI4EsnGiGr0IOXdmlvaYyx3fKMCi44_wriafGMEZvsDVInU6NgciUeGKi3SdQLazIgQjsJ29EFjJq-FAtChvaRpQbycSdtSlotiIKV_qPeX7KcD4s2KbUm9jdqdeJnMWLE?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"create a custom variable in Scratch\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-built-in-variable\">Built-in variable<\/h3>\n\n\n\n<p>The timer variable is a feature in Scratch that records how many seconds have passed since the last time the green flag was clicked or the timer was reset.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdItpvHYXypCjfMixa8OvDVyBRa6PKUiyXfxpqwCwiSPuMpupf-6qIEfRef6c_QVIdmC-_WjxNP2qrE6s7LrzY74DM9561UimROF18Cpcj6UEvVPJhXOCjBGMhLW6yvKtQZL5uKVyPA9yGE8RbuKWGPcaSC?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"Built-in timer variable\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-add-a-timer-nbsp\"><strong>Why add a timer?&nbsp;<\/strong><\/h2>\n\n\n\n<p>Timers are a way to make your game or project more dynamic and engaging.&nbsp;<\/p>\n\n\n\n<p>In a game, a timer can present a challenge. Let\u2019s say you only have 5 minutes to complete a level, this helps structure the game and adds difficulty.<\/p>\n\n\n\n<p>For apps, a timer may be used to track goals. Think of a running app where you track the number of miles you can in one day.&nbsp;<\/p>\n\n\n\n<p>There are a variety of ways timers are useful in a project or game including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Scheduling actions<\/li>\n\n\n\n<li>Breaking down tasks<\/li>\n\n\n\n<li>Adding stakes<\/li>\n\n\n\n<li>Monitoring performance<\/li>\n<\/ul>\n\n\n\n<p><strong>Scheduling actions<\/strong><\/p>\n\n\n\n<p>Timers can schedule specific actions to happen at predetermined intervals, such as executing code or triggering an event.<\/p>\n\n\n\n<p><strong>Breaking down tasks<\/strong><\/p>\n\n\n\n<p>Timers help break down challenging tasks into smaller, more manageable chunks. This prevents users from getting overwhelmed and maintain a sense of progress.<\/p>\n\n\n\n<p><strong>Adding stakes<\/strong><\/p>\n\n\n\n<p>Timers add stakes to a game such as by making players lose if they run out of time. For example, players could try to get as many points as possible or solve a puzzle before the timer runs out.<\/p>\n\n\n\n<p><strong>Monitoring performance<\/strong><\/p>\n\n\n\n<p>Timers can be used to monitor the performance of code, such as measuring how long it takes to run.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-countdown-timer-in-scratch\">How to Make a Countdown Timer in Scratch<\/h2>\n\n\n\n<p>A countdown timer starts at a certain number and counts down, usually ending at 0.<\/p>\n\n\n\n<p>In our <a href=\"https:\/\/scratch.mit.edu\/projects\/735224723\/\">Flying Space Cat game<\/a>, we can make the game more difficult (and fun!) by limiting the amount of time players have to accomplish the goal of collecting crystals.&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/scratch.mit.edu\/projects\/735224723\/\">Remix this project<\/a> to add a timer to it. You can also try the full <a href=\"https:\/\/www.codewizardshq.com\/scratch-tutorial-for-kids-flying-space-cat\/\">Flying Space Cat tutorial<\/a>.&nbsp;<\/p>\n\n\n\n<p><strong>Let\u2019s add a countdown timer to limit the players to 60 seconds.<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Start the timer<\/li>\n\n\n\n<li>Countdown every 1 second<\/li>\n\n\n\n<li>Add the next action<\/li>\n\n\n\n<li>Customize your timer<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-1-start-the-timer\">Step 1 Start the timer<\/h3>\n\n\n\n<p>We will set the timer to start when the game starts, when we click the green flag.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a \u201cWhen Green Flag Clicked\u201d block to your sprite.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf_6Ug-ZSHpi5HqH0YN1NUTD5MlsCsbShD9AZzwj4jLdZG8p3pXOsnargrHkWCkxbfaKROpHGob8Ilbagx_oOM_jirb4sCKtzuryXw6BeI6FaSE-zj9Vyt4y0-EgeIHJNqloB_OZzVfVvE2frUBMLCN6REm?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"when green flag clicked block\"\/><\/figure>\n\n\n\n<p>The time starts at 60 seconds. Since the time changes, use a variable to hold this value.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the variables blocks, make a variable called Time and check it off<\/li>\n\n\n\n<li>Under the \u201cWhen Green Flag Clicked\u201d block, add a set variable block. Update the dropdown to your Time variable and enter a number of seconds to start your timer. Here we are using 60.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXc8ui6AMB9mk_tEdDMDPzCpH47DKy3wdj1bsHpk5uBhsz-UEunmyW4qAnuFZQp2u28RwMT8HRrnbB2CupBuk_DUaUsLmTuEnP0rye9iNkx6c9RWXAasbKltCxkSgEFhXoCx7dtM3ZN0sa16eHChthkKbYRp?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"make a variable block\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdfIUDjvEhQDkV-whufvKSqOgZ_efRCQ3QpeIAwMiqwVtKuoSAv-fYX0STaWdhX1ZrEgxsWPCi-h40O7Vamrhtn_VZNpBA0KeBIxIwoMF6uoWqjBCBJJ5R4ERswBg7142JI8d6xsm9BC6Cs4zYvupBmZug?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"\"\/><\/figure>\n\n\n\n<p>Press the green flag to see the time displayed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-1-start-timer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"436\" src=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-1-start-timer-1024x436.png\" alt=\"Step 1 start scratch timer\" class=\"wp-image-64693\" srcset=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-1-start-timer-1024x436.png 1024w, https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-1-start-timer-300x128.png 300w, https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-1-start-timer-768x327.png 768w, https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-1-start-timer-1536x655.png 1536w, https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-1-start-timer.png 1919w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-2-countdown-every-1-second\">Step 2 Countdown every 1 second<\/h3>\n\n\n\n<p>Every second, the time decreases by 1 until it reaches 0. Then the game is over.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a \u201crepeat until\u201d loop with an operator for \u201cTime &lt; 1\u201d.&nbsp;<\/li>\n\n\n\n<li>Inside the loop, add a \u201cwait 1 seconds\u201d block&nbsp;<\/li>\n\n\n\n<li>Below that, add a \u201cchange Time by -1\u201d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeUCgJvZ9Hn1vJJzojrQhnyO4vpdwMQ0UAGf0_gY0gF_IDPepCKL5gSb6xPooDYVnucqJxE22m096KYl82pEeVyfifEyHV1lBOWnVnnmTyh9AC9b8dSHE9Gz5PlXPQFVp4l-SmXbQLR6flBzqM6e2ifEHCg?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"repeat loop\"\/><\/figure>\n\n\n\n<p>Click the green flag to watch your timer countdown!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-2-countdown-gif.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"345\" src=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-2-countdown-gif.gif\" alt=\"Step 2 timer counts down\" class=\"wp-image-64694\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-3-add-the-next-action\">Step 3 Add the next action<\/h3>\n\n\n\n<p>When the time runs out, or reaches 0, the loop and the game ends.<\/p>\n\n\n\n<p>Decide what happens when the time runs out. In our game, the \u201cGame Over\u201d message displays.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After the loop, add a \u201cBroadcast game over\u201d block.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdGdZEcKcvZfx41poZGBS5GyDporEg-28CaGuF21ZuXARpGdxBVQ1DlKw_OIzpLcYRqXPtibvng5zdWDu5Y1C0EhFh0vAt9L5BGY2I4o0HX9HxFNBCG5JELJ6NkDor7CTNJ3QQtKHWES-I0B_M7cSeOdbM?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"broadcast game over\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeoWMuYfLt3QzOB0BPw3q-lWKlX3duRfNIKXT2Dk2BRYLuzMT_ZynwTEDdpmqplxi5xHSeBS3a-VFu04oP4yaiEZEB-OkUCKD5W7U8pykG54MT1TP-lswdVPmFHu4_Nk4m3ewOKdYE69VTor63s-8PMCV8?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"completed time block\"\/><\/figure>\n\n\n\n<p>Run down the time to see the Game Over message.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-3-countdown-gif.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"344\" src=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-3-countdown-gif.gif\" alt=\"Step 3 game over message\" class=\"wp-image-64695\"\/><\/a><\/figure>\n\n\n\n<p>Your timer is complete. See and remix the <a href=\"https:\/\/scratch.mit.edu\/projects\/1047662937\/\">full game code here<\/a>.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-4-customize-your-timer\">Step 4 Customize your timer<\/h3>\n\n\n\n<p>You can easily customize this timer by changing these features:<\/p>\n\n\n\n<p><strong>How long is the countdown?<\/strong>&nbsp;<\/p>\n\n\n\n<p>Change the 60 in \u201cSet Time to\u201d block to another number.<\/p>\n\n\n\n<p><strong>What happens in your app after the time runs out?&nbsp;<\/strong><\/p>\n\n\n\n<p>Add that code beneath the \u201cRepeat Until\u201d block.<\/p>\n\n\n\n<p><strong>How fast does the timer countdown?&nbsp;<\/strong><\/p>\n\n\n\n<p>Change the time in \u201cwait 1 seconds\u201d and \u201cchange Time by -1\u201d to countdown faster or slower.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-stopwatch-in-scratch\">How to Make a Stopwatch in Scratch<\/h2>\n\n\n\n<p>We can also create a stopwatch in Scratch. A stopwatch measures the time that has elapsed from when it\u2019s started. It\u2019s often used when we need precise time measurements like in a race where only seconds separate the winners and losers.<\/p>\n\n\n\n<p>Scratch has a built-in timer variable that tracks to the microsecond how much time has passed since the last time the green flag was clicked or the timer was reset.&nbsp;<\/p>\n\n\n\n<p>I\u2019ll show you how to start and stop a timer here.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-add-a-stopwatch-to-a-unicorn-sighting\">Add a Stopwatch To \u201cA Unicorn Sighting\u201d<\/h3>\n\n\n\n<p>You are hanging out at the beach and see an incredible sight, a white unicorn running across the beach! Build a timer to track how long your unicorn sighting is, it will be different every time. Start the timer when you see the unicorn and stop it when it disappears.<\/p>\n\n\n\n<p><a href=\"https:\/\/scratch.mit.edu\/projects\/1056753888\/\">Remix this project<\/a> to add a stopwatch to it. You can also see the completed <a href=\"https:\/\/scratch.mit.edu\/projects\/1056753888\/\">A Unicorn Sighting<\/a>.<\/p>\n\n\n\n<p><strong>Now, let\u2019s add a stopwatch to track the time.<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create a button sprite<\/strong><\/li>\n\n\n\n<li><strong>Set the stopwatch to 0 to start<\/strong><\/li>\n\n\n\n<li><strong>Change the button when it\u2019s clicked<\/strong><\/li>\n\n\n\n<li><strong>Control the start and stop button<\/strong><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-1-create-a-button-sprite\"><strong>Step 1 Create a button sprite<\/strong><\/h3>\n\n\n\n<p>We need one sprite, this is a start and stop button.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click the \u201cChoose a Sprite\u201d button. I\u2019ve customized the Button2 sprite in the Scratch library.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfFSjIAQcC2xgRCIx0sw8A6-TT4Oq_bV130RuIlVHqkrMqHRXlp-ztM-rAsRKzqO2gYa5xvAGBxclD9b9fbJMVu3I_Bd7Swzu8AZAJH2t8nJGahxtmFB3gvz6ZHNnr1qOW_-COnUtGXmmlPHkcaI5jkbY6b?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"Choose a sprite\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create two costumes called start and stop.&nbsp;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXc46i6TaH1ts0WYAB-fQYloTUahJ9telNcBDhVTs4ZAp1AxPZ1sGTyaHP6Sfq8pQD9hfvG8nXeGH7dvepqYbYccxMtB8AZcW3OApCRee2j_GwJCeOnl6xymDIvO_NR8Vj0btC94h0am-WCnuhF8kf27z1HO?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"create a start and stop costume\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf5sYnqL0INdwlUE223ZC1QJKFAblbNNXu693YjXVC-Vckt9GXlkPIHEbKj93djxtpLqeoxauTio29SfB_erbdfV06BsM65MMARFt6xF_fpFsGEbqc2KpRzy79gAHY6oDILw0vbY3S_YpwTN73M_tUk9Z3B?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"completed start and stop costume in scratch\"\/><\/figure>\n\n\n\n<p>You should see the button in your preview screen!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-2-set-the-stopwatch-to-0-to-start\"><strong>Step 2 Set the stopwatch to 0 to start<\/strong><\/h3>\n\n\n\n<p>Add this code to your button sprite. We will set the stopwatch to 0 when the application is started.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a \u201cWhen Green Flag Clicked\u201d block to your sprite.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf_6Ug-ZSHpi5HqH0YN1NUTD5MlsCsbShD9AZzwj4jLdZG8p3pXOsnargrHkWCkxbfaKROpHGob8Ilbagx_oOM_jirb4sCKtzuryXw6BeI6FaSE-zj9Vyt4y0-EgeIHJNqloB_OZzVfVvE2frUBMLCN6REm?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"when green flag clicked\"\/><\/figure>\n\n\n\n<p>Since the time changes, use a variable to hold this value.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the variables blocks, make a variable called time and check it off.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfNXDdhdO7JCWsWB7gKVV0ocPPj6X4LrmdJ1dDVj0LxU2-sPePxJGvhI--S6pJPKLAsKd7YcPg1NGsy7UYYlpo1LH1swtjaXj2LIHDHv2uhMM-SaXwDjzqCLghOzTA5zcfDb-Wyzx790mcwOABDmzkHjSNb?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"make a time variable in scratch\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On the preview screen, double-click the time display to show a large readout and move it near your button.<\/li>\n\n\n\n<li>Under the \u201cWhen Green Flag Clicked\u201d block, add a \u201cset time to\u201d block and use 0.&nbsp;<\/li>\n\n\n\n<li>Add \u201cswitch costume to\u201d block and start with the Start button<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcSd-7te-UJZuDmhWG79QtPkDVhVOi-O_Zpk4BMwynfoxvdTU8uduI251dv9Zc5CJiDsJ2Jl_-Ot4VfoAyaXXAFT_27wiVPerGY0l-kunuROEuD1PTGCX07o44j8jQqHcIv9pmbVyzbZQoRnVb9qsrs1MJd?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"\"\/><\/figure>\n\n\n\n<p>Press the green flag to see the stopwatch set to \u201cstart\u201d and time variable to 0. Make sure you are seeing the right button and time.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf35UjG7MUMiUThxFTD_CijBKoGEdUCASpyY_BlKKxi0nRF21SmzNOWgjpjt-ZaK2U5Valmd2uHuoDHZyWKqCW9KADGP5BXV509BYI0-ury3LjlZCOE3RXoViBtqMBNWqopRVRGxv7yxObgX0TYFOzLFjPW?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"set time and button\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-3-change-the-button-when-it-s-clicked\"><strong>Step 3 Change the button when it\u2019s clicked<\/strong><\/h3>\n\n\n\n<p>When the start button is clicked, it will change to stop and vice versa.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Control this with a \u201cWhen this sprite clicked\u201d block<\/li>\n\n\n\n<li>Change the costume using \u201cnext costume\u201d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdm9e03NRfRBCKZDTA9zUn8qIW3FK_uVCufoUB6itQqfn6PTNFtaIu2h6ngxWLB30uHYv7iDOBVZU2kM5b9AhLqjDh6EVs-laCyS94Hq1T0_pGssDjqBPQVDHGeHej15iB54lMSYVai6up0cI4KyOMPiaPy?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"next costume block\"\/><\/figure>\n\n\n\n<p>Try clicking on the sprite, the costume should change when you click it.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-3-gif-800px.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"344\" src=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-3-gif-800px.gif\" alt=\"step 3 start and stop button\" class=\"wp-image-64683\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-4-control-the-start-and-stop-button\"><strong>Step 4 Control the start and stop button<\/strong><\/h3>\n\n\n\n<p>Now, we need to control the time using the start and stop buttons.<\/p>\n\n\n\n<p>Create two if statements based on what the button is showing. The first if statement is when the start button is clicked.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add an if then block&nbsp;<\/li>\n\n\n\n<li>Use the condition \u201ccostume name\u201d equals stop (remember this is the costume that shows after the button is clicked)<\/li>\n\n\n\n<li>Inside the if then, add a reset timer<\/li>\n\n\n\n<li>Use a repeat until loop with the condition \u201ccostume name\u201d equals stop<\/li>\n\n\n\n<li>Inside the loop, set the time variable equal to the timer variable<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdVkagVa4bWtafP2MpT-_-80M4BXtBFdH9g8teZGakDuZ6Ly7KlKYTIi1pBX72c9_Ui92xBGvMu6RroK4MJtMSqjtjiTVCuyET8zAyZl36z2jihkGihiH3h712AADhRDsRqxM1rEfjgNjxynmgPcc_A1FtB?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"if then block\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcuPYprJkAG_ktJhsG-eORtjALypOcltp0k19-qZd_j5Y-ehN3XhFIudyjNb720J4S_fL6hhzTATdrtSFuToutAJmnxb37Nwt-zYDcV_nAxK2XuL5p07JpVp1gOuVkmoLc9JnI1LYTMPlyW7ei3AJN9KSY?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"start costume if then code block\"\/><\/figure>\n\n\n\n<p>The second if statement is when the stop button is clicked.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add an if then block&nbsp;<\/li>\n\n\n\n<li>Use the condition \u201ccostume name\u201d equals start&nbsp;<\/li>\n\n\n\n<li>Inside the if then, show the variable time (this is the time when the button is pressed)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXc2qI5Lz_-Qr9CxaIqYUN5dwbxIXY79eSLCDdQDtYdGSK4pgOcwPUqvWVN3Kndeuivhlww7x5aK-xud9_3gumNqH_c4P1oI0yTTzcEAYRfGZvbF96ZCdxxmk_foiWkzwApp_e5GcmPP1-_xw2pCwdItb30?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"stop if then code block\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeen9r_NGkDQzjPV2FJPxZezeq7Fw4BsQmutoxm5HkqiK-myMQG0o88sYfEaGzTAThhALtWsLr8O7YA0JhCrk5lg5hNDimnaUi5QCPmeNwZQHE_NGEOPGnQdWH54-01Szjj9odMC71bbCt0BSiMtX_xxG7P?key=F0ookBzOAsFr5nPl_wPhLQ\" alt=\"completed stop if then code block\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-4-gif-800px.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"345\" src=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Step-4-gif-800px.gif\" alt=\"Step 4 start and stop loop\" class=\"wp-image-64685\"\/><\/a><\/figure>\n\n\n\n<p>Click the start button and see if it works! Watch the unicorn run across the screen and capture the time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Completed-scratch-stopwatch.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"428\" height=\"346\" src=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Completed-scratch-stopwatch.gif\" alt=\"\" class=\"wp-image-64689\"\/><\/a><\/figure>\n\n\n\n<p>Now, you have a simple stopwatch to track the time.&nbsp;<\/p>\n\n\n\n<p>Try creating your own stopwatch or adding one to your next project. There are plenty of ways to customize it and improve on this simple stopwatch.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-download-free-printable-scratch-coding-tutorials-pdf\">Download Free Printable Scratch Coding Tutorials PDF<\/h2>\n\n\n\n<p>Try adding a timer to these Scratch games. Download a full PDF tutorial for the Rocketship Landing game and Flying Space Cat game.<\/p>\n\n\n<!-- This site is converting visitors into subscribers and customers with OptinMonster - https:\/\/optinmonster.com :: Campaign Title: Scratch Coding Tutorials with Location [Download] -->\n<div id=\"om-i88ehlfzgijqlvmuilzg-holder\"><\/div>\n<script>(function(d,u,ac){var s=d.createElement('script');s.type='text\/javascript';s.src='https:\/\/a.omappapi.com\/app\/js\/api.min.js';s.async=true;s.dataset.user=u;s.dataset.campaign=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,16320,'i88ehlfzgijqlvmuilzg');<\/script>\n<!-- \/ OptinMonster -->\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-learn-how-to-make-games-in-scratch\">Learn How to Make Games in Scratch<\/h2>\n\n\n\n<p>Making games in Scratch is a great way for kids to build a foundation in programming and also practice analytical thinking, computational thinking, problem-solving, and logical reasoning.&nbsp;<\/p>\n\n\n\n<p>Kids, ages 8-10, who want to learn more about <a href=\"https:\/\/www.codewizardshq.com\/scratch-coding-classes\/\">Scratch coding<\/a> will love the live, online classes at CodeWizardsHQ. We offer a structured curriculum with project-based learning and expert instructors who support students every step of the way.&nbsp;Enroll today to get started.<\/p>\n\n\n\n<p>They\u2019ll build the coding fundamentals they need to move on to text-based programming in Python and JavaScript. It\u2019s a complete coding program that provides everything your child needs to learn to code.<\/p>\n\n\n\n<p><strong>Learn to make games in Scratch in our <a href=\"https:\/\/www.codewizardshq.com\/coding-programs-for-kids\/\">top-rated coding classes for kids<\/a>.<\/strong> <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scratch is a fun and creative learning platform for kids who are curious about building games and applications. They can use their imagination to add and customize their projects.&nbsp; In this tutorial, I\u2019ll show you how to make a timer in Scratch. We will code a countdown timer and a stopwatch. You can add these [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":64661,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_lmt_disableupdate":"yes","_lmt_disable":"","footnotes":""},"categories":[10809,4758],"tags":[],"class_list":["post-64658","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-activities","category-learn-coding"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.8 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Make a Timer in Scratch | CodeWizardsHQ<\/title>\n<meta name=\"description\" content=\"Step-by-step tutorial to add a timer to your game or program in Scratch. Learn how to code a countdown time and stopwatch.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Make a Timer in Scratch\" \/>\n<meta property=\"og:description\" content=\"Step-by-step tutorial to add a timer to your game or program in Scratch. Learn how to code a countdown time and stopwatch.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeWizardsHQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codewizardshq\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-19T22:58:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-23T05:15:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Banner-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"620\" \/>\n\t<meta property=\"og:image:height\" content=\"323\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Margaret Choi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codewizardshq\" \/>\n<meta name=\"twitter:site\" content=\"@codewizardshq\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Margaret Choi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\/\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"Article\",\n\t            \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Margaret Choi\",\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/#\/schema\/person\/0d1794273fcc4d0b634d50375e00e1ca\"\n\t            },\n\t            \"headline\": \"How to Make a Timer in Scratch\",\n\t            \"datePublished\": \"2024-08-19T22:58:28+00:00\",\n\t            \"dateModified\": \"2025-04-23T05:15:30+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/\"\n\t            },\n\t            \"wordCount\": 1785,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png\",\n\t            \"articleSection\": [\n\t                \"Activities\",\n\t                \"Learn Coding\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/\",\n\t            \"url\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/\",\n\t            \"name\": \"How to Make a Timer in Scratch | CodeWizardsHQ\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png\",\n\t            \"datePublished\": \"2024-08-19T22:58:28+00:00\",\n\t            \"dateModified\": \"2025-04-23T05:15:30+00:00\",\n\t            \"description\": \"Step-by-step tutorial to add a timer to your game or program in Scratch. Learn how to code a countdown time and stopwatch.\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage\",\n\t            \"url\": \"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png\",\n\t            \"contentUrl\": \"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png\",\n\t            \"width\": 1600,\n\t            \"height\": 395,\n\t            \"caption\": \"how to make a timer in scratch page banner\"\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"Home\",\n\t                    \"item\": \"https:\/\/www.codewizardshq.com\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"How to Make a Timer in Scratch\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\/\/www.codewizardshq.com\/#website\",\n\t            \"url\": \"https:\/\/www.codewizardshq.com\/\",\n\t            \"name\": \"CodeWizardsHQ\",\n\t            \"description\": \"The leading online coding academy for kids and teens ages 8-18\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\/\/www.codewizardshq.com\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\/\/www.codewizardshq.com\/#organization\",\n\t            \"name\": \"CodeWizardsHQ\",\n\t            \"url\": \"https:\/\/www.codewizardshq.com\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/#\/schema\/logo\/image\/\",\n\t                \"url\": \"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2016\/08\/blueVertical@2x-e1572141901928.png\",\n\t                \"contentUrl\": \"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2016\/08\/blueVertical@2x-e1572141901928.png\",\n\t                \"width\": 150,\n\t                \"height\": 108,\n\t                \"caption\": \"CodeWizardsHQ\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/#\/schema\/logo\/image\/\"\n\t            },\n\t            \"sameAs\": [\n\t                \"https:\/\/www.facebook.com\/codewizardshq\/\",\n\t                \"https:\/\/x.com\/codewizardshq\",\n\t                \"https:\/\/www.instagram.com\/codewizardshq\/\",\n\t                \"https:\/\/www.linkedin.com\/company\/codewizardshq\",\n\t                \"https:\/\/www.pinterest.com\/codewizardshq\/\",\n\t                \"https:\/\/www.youtube.com\/channel\/UC4NM0jfN0LI8_vWtiwLqgGw\"\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\/\/www.codewizardshq.com\/#\/schema\/person\/0d1794273fcc4d0b634d50375e00e1ca\",\n\t            \"name\": \"Margaret Choi\",\n\t            \"image\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.codewizardshq.com\/#\/schema\/person\/image\/\",\n\t                \"url\": \"https:\/\/secure.gravatar.com\/avatar\/7815305d40218c8baa3db95a35d697293aad7b383484ae7e26b6383e0f67b6ba?s=96&d=mm&r=g\",\n\t                \"contentUrl\": \"https:\/\/secure.gravatar.com\/avatar\/7815305d40218c8baa3db95a35d697293aad7b383484ae7e26b6383e0f67b6ba?s=96&d=mm&r=g\",\n\t                \"caption\": \"Margaret Choi\"\n\t            },\n\t            \"description\": \"Instructor and marketing manager at CodeWizardsHQ since 2019. She breaks down topics around coding and specific coding languages for kids to understand.\",\n\t            \"sameAs\": [\n\t                \"https:\/\/www.facebook.com\/margaret.choi.3\"\n\t            ],\n\t            \"url\": \"https:\/\/www.codewizardshq.com\/author\/margaretchoi\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Make a Timer in Scratch | CodeWizardsHQ","description":"Step-by-step tutorial to add a timer to your game or program in Scratch. Learn how to code a countdown time and stopwatch.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/","og_locale":"en_US","og_type":"article","og_title":"How to Make a Timer in Scratch","og_description":"Step-by-step tutorial to add a timer to your game or program in Scratch. Learn how to code a countdown time and stopwatch.","og_url":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/","og_site_name":"CodeWizardsHQ","article_publisher":"https:\/\/www.facebook.com\/codewizardshq\/","article_published_time":"2024-08-19T22:58:28+00:00","article_modified_time":"2025-04-23T05:15:30+00:00","og_image":[{"width":620,"height":323,"url":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Banner-Logo.png","type":"image\/png"}],"author":"Margaret Choi","twitter_card":"summary_large_image","twitter_creator":"@codewizardshq","twitter_site":"@codewizardshq","twitter_misc":{"Written by":"Margaret Choi","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#article","isPartOf":{"@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/"},"author":{"name":"Margaret Choi","@id":"https:\/\/www.codewizardshq.com\/#\/schema\/person\/0d1794273fcc4d0b634d50375e00e1ca"},"headline":"How to Make a Timer in Scratch","datePublished":"2024-08-19T22:58:28+00:00","dateModified":"2025-04-23T05:15:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/"},"wordCount":1785,"publisher":{"@id":"https:\/\/www.codewizardshq.com\/#organization"},"image":{"@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png","articleSection":["Activities","Learn Coding"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/","url":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/","name":"How to Make a Timer in Scratch | CodeWizardsHQ","isPartOf":{"@id":"https:\/\/www.codewizardshq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage"},"image":{"@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png","datePublished":"2024-08-19T22:58:28+00:00","dateModified":"2025-04-23T05:15:30+00:00","description":"Step-by-step tutorial to add a timer to your game or program in Scratch. Learn how to code a countdown time and stopwatch.","breadcrumb":{"@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#primaryimage","url":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png","contentUrl":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner.png","width":1600,"height":395,"caption":"how to make a timer in scratch page banner"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codewizardshq.com\/how-to-make-a-timer-in-scratch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codewizardshq.com\/"},{"@type":"ListItem","position":2,"name":"How to Make a Timer in Scratch"}]},{"@type":"WebSite","@id":"https:\/\/www.codewizardshq.com\/#website","url":"https:\/\/www.codewizardshq.com\/","name":"CodeWizardsHQ","description":"The leading online coding academy for kids and teens ages 8-18","publisher":{"@id":"https:\/\/www.codewizardshq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codewizardshq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codewizardshq.com\/#organization","name":"CodeWizardsHQ","url":"https:\/\/www.codewizardshq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codewizardshq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2016\/08\/blueVertical@2x-e1572141901928.png","contentUrl":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2016\/08\/blueVertical@2x-e1572141901928.png","width":150,"height":108,"caption":"CodeWizardsHQ"},"image":{"@id":"https:\/\/www.codewizardshq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codewizardshq\/","https:\/\/x.com\/codewizardshq","https:\/\/www.instagram.com\/codewizardshq\/","https:\/\/www.linkedin.com\/company\/codewizardshq","https:\/\/www.pinterest.com\/codewizardshq\/","https:\/\/www.youtube.com\/channel\/UC4NM0jfN0LI8_vWtiwLqgGw"]},{"@type":"Person","@id":"https:\/\/www.codewizardshq.com\/#\/schema\/person\/0d1794273fcc4d0b634d50375e00e1ca","name":"Margaret Choi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codewizardshq.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7815305d40218c8baa3db95a35d697293aad7b383484ae7e26b6383e0f67b6ba?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7815305d40218c8baa3db95a35d697293aad7b383484ae7e26b6383e0f67b6ba?s=96&d=mm&r=g","caption":"Margaret Choi"},"description":"Instructor and marketing manager at CodeWizardsHQ since 2019. She breaks down topics around coding and specific coding languages for kids to understand.","sameAs":["https:\/\/www.facebook.com\/margaret.choi.3"],"url":"https:\/\/www.codewizardshq.com\/author\/margaretchoi\/"}]}},"modified_by":"Margaret Choi","featured_image_src":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner-600x395.png","featured_image_src_square":"https:\/\/www.codewizardshq.com\/wp-content\/uploads\/2024\/08\/Tutorial-Page-Banner-600x395.png","author_info":{"display_name":"Margaret Choi","author_link":"https:\/\/www.codewizardshq.com\/author\/margaretchoi\/"},"_links":{"self":[{"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/posts\/64658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/comments?post=64658"}],"version-history":[{"count":2,"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/posts\/64658\/revisions"}],"predecessor-version":[{"id":68707,"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/posts\/64658\/revisions\/68707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/media\/64661"}],"wp:attachment":[{"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/media?parent=64658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/categories?post=64658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codewizardshq.com\/wp-json\/wp\/v2\/tags?post=64658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}