{"id":5332,"date":"2022-03-12T15:06:38","date_gmt":"2022-03-12T15:06:38","guid":{"rendered":"https:\/\/brightchamps.com\/blog\/?p=5332"},"modified":"2026-02-02T13:13:58","modified_gmt":"2026-02-02T13:13:58","slug":"how-to-make-a-score-function-in-scratch","status":"publish","type":"post","link":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/","title":{"rendered":"How To Make A Score Function In Scratch"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"5332\" class=\"elementor elementor-5332\">\n\t\t\t\t<div class=\"elementor-element elementor-element-68034f3b e-flex e-con-boxed e-con e-parent\" data-id=\"68034f3b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4dc00a7 elementor-widget elementor-widget-text-editor\" data-id=\"4dc00a7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/brightchamps.com\/blog\/\">Home<\/a><\/span> \u00bb <span><a href=\"https:\/\/brightchamps.com\/blog\/code-for-kids\/\">Code for Kids Corner<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\"><strong>How To Make A Score Function In Scratch<\/strong><\/span><\/span><\/div>\n<p>\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Scratch is one of the most popular programming platforms among kids that allows linking their creativity with logical thinking to craft <a href=\"https:\/\/brightchamps.com\/blog\/create-first-scratch-project\/\">projects like games<\/a>, animations, and interactive stories.\u00a0<\/p>\n\n<div id=\"cstm_banner_cta\">\u00a0<\/div>\n\n<p class=\"wp-block-paragraph\">Assuming you have previously explored <a href=\"https:\/\/brightchamps.com\/blog\/guides\/scratch-programming\/\">scratch<\/a> and are familiar with its basic elements and concepts, I will proceed with the blog.<\/p>\n\n<p class=\"wp-block-paragraph\">Imagine you&#8217;ve spent a lot of time building and programming your ideal game from scratch, but you&#8217;re at a loss for how to keep track of the progress of your main character.<\/p>\n\n<p class=\"wp-block-paragraph\">So what are you going to do?<\/p>\n\n<p class=\"wp-block-paragraph\">Well, I have the answers, which are much simpler than you think.<\/p>\n\n<p class=\"wp-block-paragraph\">Also, you can take a look at Other <a href=\"https:\/\/brightchamps.com\/blog\/kids-coding-languages\/\">Kids coding languages<\/a><\/p>\n\n<div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\">\n<h2>Table of contents<\/h2>\n<ul>\n<li><a href=\"#how-to-make-a-score-function-in-scratch\" data-level=\"2\">How To Make A Score Function In Scratch<\/a>\n<ul>\n<li><a href=\"#how-to-create-a-score-variable\" data-level=\"3\">How to create a score variable?\u00a0<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#conclusion\" data-level=\"2\">Conclusion\u00a0<\/a><\/li>\n<\/ul>\n<\/div>\n\n<h2 id=\"how-to-make-a-score-function-in-scratch\" class=\"wp-block-heading\">How To Make A Score Function In Scratch<\/h2>\n\n<p class=\"wp-block-paragraph\">Before we dive in to create the score, let&#8217;s understand the concept of the variables.<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>What are variables?\u00a0<\/strong><\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">Why do we need to know about them to create a score?\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">A variable is a container used to store a specific type of data. The value you keep in a variable can be varied, i.e. it can be changed, hence the name variable.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Consider the example below to learn more about variables.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">Imagine a situation where your mother asks you to go grocery shopping. When you return, you see your mother kept three separate containers on the kitchen countertop.<\/p>\n\n<p class=\"wp-block-paragraph\">These containers have different labels: Vegetables, Fruits, and Drinks.\u00a0<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"955\" height=\"276\" class=\"wp-image-5341\" style=\"width: 716px; height: 207px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-1.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-1.png 955w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-1-480x139.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 955px, 100vw\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">Then she asks you to segregate the grocery items based on the labels on these containers. This makes it easier for her to use the items.<\/p>\n\n<p class=\"wp-block-paragraph\">She can also remove or add similar items to the containers as needed.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">The variables are just like these containers; they hold the data, which can then be modified or used as needed.<\/p>\n\n<p class=\"wp-block-paragraph\">The labels on the containers are analogous to the variable names.<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"610\" height=\"287\" class=\"wp-image-5342\" style=\"width: 458px; height: 215px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-2.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-2.png 610w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-2-480x226.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 610px, 100vw\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">For more information on variables, you can refer to Transcode&#8217;s video.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">The score is considered variable since its value changes according to the conditions\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\">or the rules of the <a href=\"https:\/\/brightchamps.com\/blog\/tic-tac-toe-game-scratch\/\" data-wplink-edit=\"true\">game<\/a>.\u00a0<\/p>\n\n<h3 id=\"how-to-create-a-score-variable\" class=\"wp-block-heading\"><strong>How to create a score variable?\u00a0<\/strong><\/h3>\n\n<p class=\"wp-block-paragraph\">To create the score variable in scratch, follow the steps below.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Select the &#8220;Variables&#8221; block from the &#8220;Block Palette&#8221; of the scratch user interface. Then click on &#8220;Make a variable&#8221;.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> Type score as a variable name in the New variable name section and then click<\/p>\n\n<p class=\"wp-block-paragraph\">ok.\u00a0<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"435\" height=\"677\" class=\"wp-image-5340\" style=\"width: 326px; height: 508px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-3.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-3.png 435w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-3-193x300.png 193w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-3-96x150.png 96w\" sizes=\"(max-width: 435px) 100vw, 435px\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\"><em>Tip: Naming the variable accurately and descriptively is recommended so that it is easy to understand what type of information it will be storing.\u00a0<\/em><\/p>\n\n<p class=\"wp-block-paragraph\">Note: Select For all sprites if you want to create. If you choose For this sprite alone, the variable becomes local, meaning you may alter or modify it from the sprite on which it was generated. Global variables, on the other hand, can be accessible from any sprite or background in your project.<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"470\" class=\"wp-image-5339\" style=\"width: 398px; height: 353px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-4.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-4.png 531w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-4-480x425.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 531px, 100vw\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\"><em>Tip: Select the score, to display it on your game.<\/em><\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"481\" class=\"wp-image-5338\" style=\"width: 518px; height: 361px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-5.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-5.png 691w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-5-480x334.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 691px, 100vw\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">Different variable <a href=\"https:\/\/brightchamps.com\/blog\/block-based-coding\/\">blocks<\/a> can be used throughout the code scripts:\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>set variable to 0: <\/strong>It is used to set a particular value to a variable (here, 0).\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>change a variable by 1: <\/strong>This block changes the value of a variable by any value that you provide (here, 1).\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>show variable:<\/strong> Using this block a variable can be displayed whenever required.\u00a0<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>hide variable:<\/strong> With this block, one can hide a variable.<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"596\" class=\"wp-image-5337\" style=\"width: 410px; height: 447px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-6.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-6.png 547w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-6-480x523.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 547px, 100vw\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">Setting the score to 0 when the new game begins is recommended. To accomplish this, add set my variable to 0 at the start of the script.<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"397\" class=\"wp-image-5335\" style=\"width: 758px; height: 298px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-7.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-7.png 1010w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-7-980x385.png 980w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-7-480x189.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1010px, 100vw\" \/><\/figure>\n\n<ul class=\"wp-block-list\">\n<li><strong>Script Area Stage<\/strong><\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">Depending on the condition, the score can be increased or decreased using a change variable by one block.<\/p>\n\n<p class=\"wp-block-paragraph\">For example, if we want that whenever our sprite touches the green color the score should increase by 10, and it should decrease by 5 when it feels the red color.<\/p>\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/brightchamps.com\/blog\/organize-scratch-script\/\">script<\/a> would look like the one should below:\u00a0<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"553\" height=\"580\" class=\"wp-image-5336\" style=\"width: 415px; height: 435px;\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-8.png\" alt=\"How To Make A Score Function In Scratch\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-8.png 553w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch-8-480x503.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 553px, 100vw\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\"><em>Tip: Using forever here is important to keep checking the conditions again and again!<\/em><\/p>\n\n<h2 id=\"conclusion\" class=\"wp-block-heading\"><strong>Conclusion\u00a0<\/strong><\/h2>\n\n<p class=\"wp-block-paragraph\">Congratulations! You just discovered a simple method for setting up a score variable in your game.<\/p>\n\n<p class=\"wp-block-paragraph\">You only need to create a variable called score by selecting the Variables block from the block palette and you are ready to go. You may now monitor each player&#8217;s score within the game.<\/p>\n\n<p class=\"wp-block-paragraph\">I can&#8217;t wait to see the incredible products you make using this course. Have fun making!<\/p>\n\n<p class=\"wp-block-paragraph\">You can also check out <a href=\"https:\/\/brightchamps.com\/blog\/top-coding-courses-for-kids-a-comprehensive-guide\/\">coding courses for kids <\/a>for more.<\/p>\n\n<p class=\"wp-block-paragraph\">Was this article useful to you? Don&#8217;t forget to tell your relatives and friends about it.<\/p>\n\n<p class=\"wp-block-paragraph\">Learn <a href=\"https:\/\/brightchamps.com\/blog\/scratch-coding-for-kids\/\">scratch coding for kids<\/a> at <a href=\"https:\/\/brightchamps.com\/\">BrightChamps<\/a> with its specially designed curriculum that makes learning programming easy for students in Grade 1-12.<\/p>\n\n<p class=\"wp-block-paragraph\">BrightChamps also teaches a variety of other programs that help kids build a foundation in computer programming through activities, interactive lessons, and other means.<\/p>\n\n<div id=\"cstm_banner_cta\">\u00a0<\/div>\n\n<p class=\"wp-block-paragraph\" id=\"faqs\"><strong>Frequently Asked Questions (FAQs)<\/strong><\/p>\n\n<div class=\"schema-faq wp-block-yoast-faq-block\">\n<div id=\"faq-question-1647097530861\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\"><strong>What are variables used for in Scratch Programming?\u00a0<\/strong><\/strong>\n<p class=\"schema-faq-answer\">Variables are used to keep track of information or data. Variable values can be changed at any time. For example, we can create a score variable to keep track of a player&#8217;s score or add a time limit to our game by creating a timer variable.<\/p>\n<\/div>\n<div id=\"faq-question-1647097558519\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\"><strong>Is there any other way to create a Score in Scratch?<\/strong><\/strong>\n<p class=\"schema-faq-answer\">Using variables is the best and easiest method to keep track of the score in Scratch.<\/p>\n<\/div>\n<div id=\"faq-question-1647097582967\" class=\"schema-faq-section\">\n<p class=\"schema-faq-answer\">\u00a0<\/p>\n<\/div>\n<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Scratch is one of the most popular programming platforms among kids that allows linking their creativity with logical thinking to craft projects like games, animations, and interactive stories.\u00a0 \u00a0 Assuming you have previously explored scratch and are familiar with its basic elements and concepts, I will proceed with the blog. Imagine you&#8217;ve spent [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":5334,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"1080","footnotes":""},"categories":[49],"tags":[68],"class_list":["post-5332","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-for-kids","tag-codechamps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Make A Score Function In Scratch - BrightChamps Blog<\/title>\n<meta name=\"description\" content=\"Let&#039;s grasp a few ideas before starting to build a score function in Scratch. Variables are one thing to understand that is crucial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-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 Score Function In Scratch - BrightChamps Blog\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s grasp a few ideas before starting to build a score function in Scratch. Variables are one thing to understand that is crucial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/\" \/>\n<meta property=\"og:site_name\" content=\"BrightChamps Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BrightChamps-101266664954230\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-12T15:06:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-02T13:13:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2100\" \/>\n\t<meta property=\"og:image:height\" content=\"1185\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Team BrightChamps\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team BrightChamps\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/\"},\"author\":{\"name\":\"Team BrightChamps\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/person\\\/696f52bb580934e5022585ac161e5123\"},\"headline\":\"How To Make A Score Function In Scratch\",\"datePublished\":\"2022-03-12T15:06:38+00:00\",\"dateModified\":\"2026-02-02T13:13:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/\"},\"wordCount\":883,\"publisher\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Score-Function-In-Scratch.png\",\"keywords\":[\"CodeChamps\"],\"articleSection\":[\"Code for Kids Corner\"],\"inLanguage\":\"en-US\",\"accessibilityFeature\":[\"tableOfContents\"]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/\",\"name\":\"How To Make A Score Function In Scratch - BrightChamps Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Score-Function-In-Scratch.png\",\"datePublished\":\"2022-03-12T15:06:38+00:00\",\"dateModified\":\"2026-02-02T13:13:58+00:00\",\"description\":\"Let's grasp a few ideas before starting to build a score function in Scratch. Variables are one thing to understand that is crucial.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#faq-question-1647097530861\"},{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#faq-question-1647097558519\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#primaryimage\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Score-Function-In-Scratch.png\",\"contentUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Score-Function-In-Scratch.png\",\"width\":2100,\"height\":1185,\"caption\":\"How To Make A Score Function In Scratch\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code for Kids Corner\",\"item\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/code-for-kids\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Make A Score Function In Scratch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/\",\"name\":\"BrightChamps Blog\",\"description\":\"BrightChamps Blog, also known as BrightChamps Hub is a go-to resource hub for everything on Coding for kids\",\"publisher\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\",\"name\":\"BrightChamps\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/BrightCHAMPS-logo-new-1.png\",\"contentUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/BrightCHAMPS-logo-new-1.png\",\"width\":417,\"height\":80,\"caption\":\"BrightChamps\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/BrightChamps-101266664954230\\\/\",\"https:\\\/\\\/www.instagram.com\\\/brightchamps\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/brightchamps\\\/mycompany\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC_Afe_rMGoK5Bs4nSt8QIzQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/person\\\/696f52bb580934e5022585ac161e5123\",\"name\":\"Team BrightChamps\",\"description\":\"We are an army of educators and passionate learners from BrightChamps family, committed to providing free learning resources to kids, parents &amp; students. Learn from Us\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/author\\\/team\\\/\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#faq-question-1647097530861\",\"position\":1,\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#faq-question-1647097530861\",\"name\":\"u003cstrongu003eWhat are variables used for in Scratch Programming?\u00a0u003c\\\/strongu003e\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Variables are used to keep track of information or data. Variable values can be changed at any time. For example, we can create a score variable to keep track of a player's score or add a time limit to our game by creating a timer variable.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#faq-question-1647097558519\",\"position\":2,\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-a-score-function-in-scratch\\\/#faq-question-1647097558519\",\"name\":\"u003cstrongu003eIs there any other way to create a Score in Scratch?u003c\\\/strongu003e\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Using variables is the best and easiest method to keep track of the score in Scratch.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Make A Score Function In Scratch - BrightChamps Blog","description":"Let's grasp a few ideas before starting to build a score function in Scratch. Variables are one thing to understand that is crucial.","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:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/","og_locale":"en_US","og_type":"article","og_title":"How To Make A Score Function In Scratch - BrightChamps Blog","og_description":"Let's grasp a few ideas before starting to build a score function in Scratch. Variables are one thing to understand that is crucial.","og_url":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/","og_site_name":"BrightChamps Blog","article_publisher":"https:\/\/www.facebook.com\/BrightChamps-101266664954230\/","article_published_time":"2022-03-12T15:06:38+00:00","article_modified_time":"2026-02-02T13:13:58+00:00","og_image":[{"width":2100,"height":1185,"url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch.png","type":"image\/png"}],"author":"Team BrightChamps","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team BrightChamps","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#article","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/"},"author":{"name":"Team BrightChamps","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/person\/696f52bb580934e5022585ac161e5123"},"headline":"How To Make A Score Function In Scratch","datePublished":"2022-03-12T15:06:38+00:00","dateModified":"2026-02-02T13:13:58+00:00","mainEntityOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/"},"wordCount":883,"publisher":{"@id":"https:\/\/brightchamps.com\/blog\/#organization"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch.png","keywords":["CodeChamps"],"articleSection":["Code for Kids Corner"],"inLanguage":"en-US","accessibilityFeature":["tableOfContents"]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/","url":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/","name":"How To Make A Score Function In Scratch - BrightChamps Blog","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#primaryimage"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch.png","datePublished":"2022-03-12T15:06:38+00:00","dateModified":"2026-02-02T13:13:58+00:00","description":"Let's grasp a few ideas before starting to build a score function in Scratch. Variables are one thing to understand that is crucial.","breadcrumb":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#faq-question-1647097530861"},{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#faq-question-1647097558519"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#primaryimage","url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch.png","contentUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Score-Function-In-Scratch.png","width":2100,"height":1185,"caption":"How To Make A Score Function In Scratch"},{"@type":"BreadcrumbList","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/brightchamps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Code for Kids Corner","item":"https:\/\/brightchamps.com\/blog\/code-for-kids\/"},{"@type":"ListItem","position":3,"name":"How To Make A Score Function In Scratch"}]},{"@type":"WebSite","@id":"https:\/\/brightchamps.com\/blog\/#website","url":"https:\/\/brightchamps.com\/blog\/","name":"BrightChamps Blog","description":"BrightChamps Blog, also known as BrightChamps Hub is a go-to resource hub for everything on Coding for kids","publisher":{"@id":"https:\/\/brightchamps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/brightchamps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/brightchamps.com\/blog\/#organization","name":"BrightChamps","url":"https:\/\/brightchamps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2026\/03\/BrightCHAMPS-logo-new-1.png","contentUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2026\/03\/BrightCHAMPS-logo-new-1.png","width":417,"height":80,"caption":"BrightChamps"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BrightChamps-101266664954230\/","https:\/\/www.instagram.com\/brightchamps\/","https:\/\/www.linkedin.com\/company\/brightchamps\/mycompany\/","https:\/\/www.youtube.com\/channel\/UC_Afe_rMGoK5Bs4nSt8QIzQ"]},{"@type":"Person","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/person\/696f52bb580934e5022585ac161e5123","name":"Team BrightChamps","description":"We are an army of educators and passionate learners from BrightChamps family, committed to providing free learning resources to kids, parents &amp; students. Learn from Us","url":"https:\/\/brightchamps.com\/blog\/author\/team\/"},{"@type":"Question","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#faq-question-1647097530861","position":1,"url":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#faq-question-1647097530861","name":"u003cstrongu003eWhat are variables used for in Scratch Programming?\u00a0u003c\/strongu003e","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Variables are used to keep track of information or data. Variable values can be changed at any time. For example, we can create a score variable to keep track of a player's score or add a time limit to our game by creating a timer variable.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#faq-question-1647097558519","position":2,"url":"https:\/\/brightchamps.com\/blog\/how-to-make-a-score-function-in-scratch\/#faq-question-1647097558519","name":"u003cstrongu003eIs there any other way to create a Score in Scratch?u003c\/strongu003e","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Using variables is the best and easiest method to keep track of the score in Scratch.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/comments?post=5332"}],"version-history":[{"count":12,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5332\/revisions"}],"predecessor-version":[{"id":35982,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5332\/revisions\/35982"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media\/5334"}],"wp:attachment":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media?parent=5332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/categories?post=5332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/tags?post=5332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}