{"id":5212,"date":"2022-03-11T15:17:31","date_gmt":"2022-03-11T15:17:31","guid":{"rendered":"https:\/\/brightchamps.com\/blog\/?p=5212"},"modified":"2024-10-01T10:36:40","modified_gmt":"2024-10-01T10:36:40","slug":"how-to-make-car-racing-game-scratch","status":"publish","type":"post","link":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/","title":{"rendered":"Create A Car Racing Scratch Game [Step-by-Step Guide]"},"content":{"rendered":"<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>Create A Car Racing Scratch Game [Step-by-Step Guide]<\/strong><\/span><\/span><\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Scratch is a platform that allows users to express their creativity while learning to code. <a href=\"https:\/\/brightchamps.com\/blog\/guides\/scratch-programming\/\">Scratch Programming<\/a> is a block-based coding language that makes it simple to <a href=\"https:\/\/brightchamps.com\/blog\/create-flying-game-scratch\/\">create games<\/a>, animations, and other projects.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With this platform, there are countless opportunities for development, and even those just learning to code or young children can produce engaging games.<\/p>\n\n\n<div id=\"cstm_banner_cta\"><\/div>\n\n\n<p class=\"wp-block-paragraph\">One such game is the Car Racing Game, which is also one of the most popular games in Scratch. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This article will show you how to make a <strong>Car Racing Game in Scratch<\/strong>, where we&#8217;ll also be creating a racing track.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll also learn about basic coding concepts like variables, loops, and conditional blocks in this <a href=\"https:\/\/brightchamps.com\/blog\/roblox-car-games\/\">Car Racing Game<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\"><h2>Table of contents<\/h2><ul><li><a href=\"#h-what-is-a-car-racing-game\" data-level=\"3\">What is a Car Racing Game?<\/a><\/li><li><a href=\"#h-how-to-make-a-car-racing-scratch-game\" data-level=\"2\">How To Make A Car Racing  Scratch Game\u00a0\u00a0<\/a><\/li><li><a href=\"#coding-for-the-car\" data-level=\"2\">Coding For The Car\u00a0\u00a0<\/a><\/li><li><a href=\"#conclusion\" data-level=\"2\">Conclusion<\/a><\/li><li><a href=\"#faqs\" data-level=\"2\">Frequently Asked Questions (FAQs)<\/a><\/li><\/ul><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-is-a-car-racing-game\"><strong>What is a Car Racing Game?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A Car Racing Game is essentially a racing game in which two cars race on a racing track.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two players, Player 1 and Player 2, compete in this game by racing around a track. Let&#8217;s jump right into the game creation process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-car-racing-scratch-game\">How To Make A Car Racing  Scratch Game&nbsp;&nbsp;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First and foremost, let&#8217;s create the sprite and backdrop that will be used in this game.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"h-drawing-the-backdrop\"><strong>Drawing The Backdrop&nbsp;&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s start with the backdrop. To create a new backdrop, select the &#8220;paint&#8221; tool and then click the &#8220;new backdrop&#8221; button.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Place your mouse pointer on the &#8220;choose a backdrop&#8221; button in the lower right corner of the screen. Then select &#8220;paint.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"333\" height=\"410\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-1.png\" alt=\"Car Racing Game In Scratch \" class=\"wp-image-5213\" style=\"width:250px;height:308px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-1.png 333w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-1-244x300.png 244w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-1-122x150.png 122w\" sizes=\"(max-width: 333px) 100vw, 333px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then we can start drawing our backdrop which will be a racing circuit for our cars.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"706\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-2-1024x706.png\" alt=\"Car Racing Game In Scratch\" class=\"wp-image-5214\" style=\"width:768px;height:530px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-2-1024x706.png 1024w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-2-980x676.png 980w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-2-480x331.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"drawing-the-sprite-car\"><strong>Drawing The Sprite (Car)&nbsp;&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s get to the sprite now that the backdrop has been created. Let&#8217;s make our sprite an automobile. Draw a rectangle for the body to start.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can give it whatever color you want.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"861\" height=\"628\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-3.png\" alt=\"Car Racing Game In Scratch \" class=\"wp-image-5215\" style=\"width:646px;height:471px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-3.png 861w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-3-480x350.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 861px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let\u2019s move to the tires. Draw 4 more rectangles for the tires.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, by clicking the &#8220;forward&#8221; button, move your body forward of the tires until all of them are behind the car body.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"361\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-4-1024x361.png\" alt=\"Car Racing Game In Scratch \" class=\"wp-image-5216\" style=\"width:768px;height:271px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-4-980x345.png 980w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-4-480x169.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And lastly, draw the car windshield using a rectangle.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"735\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-5.png\" alt=\"Car Racing Game In Scratch \" class=\"wp-image-5217\" style=\"width:766px;height:551px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-5.png 1021w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-5-980x705.png 980w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-5-480x346.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1021px, 100vw\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"coding-for-the-car\"><strong>Coding For The Car&nbsp;&nbsp;<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Movement of car&nbsp;&nbsp;<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">First, we must adjust the size of the car so that it does not take up too much space on the screen (the car size here is 25).&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, using the &#8220;go to&#8221; and &#8220;point in direction&#8221; blocks, set the car&#8217;s position and direction. As a result, it will begin before the lap line and will face to the right.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then make it move indefinitely and change direction with each right or left arrow press.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(<em>Note: yellow blocks represent events, blue blocks represent motion, light blue blocks represent sensing, and orange blocks represent control.<\/em>)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"586\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-6.png\" alt=\"Car Racing Game In Scratch \" class=\"wp-image-5218\" style=\"width:608px;height:440px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-6.png 811w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-6-480x347.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 811px, 100vw\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lapping System&nbsp;&nbsp;<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Before making the code for the lapping system. We have to make a variable for the lap number. Click on \u201cmake a variable\u201d then give a name to your variable. Here we named it as P1 lap&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(Note: P1 = Player1)&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"361\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-7.png\" alt=\"Car Racing Game In Scratch \" class=\"wp-image-5219\" style=\"width:506px;height:271px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-7.png 675w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-7-480x257.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 675px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now that we&#8217;ve created the variable, we can move on to the blocks. Let&#8217;s make it a rule that if the car touches the lap line (white), we get one lap number.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, when we first start the game, we must set the lap number to 0. (when green flag is clicked). As a result, the lap number will always begin with 0.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Start over when touches the grass area&nbsp;<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s now modify the car such that it restarts when it strikes the grass. The location and direction must therefore be set back to their initial values. Make sure that the current lap&#8217;s number is maintained.<\/p>\n\n\n<div id=\"cstm_banner_cta\"><\/div>\n\n\n<p class=\"wp-block-paragraph\" id=\"duplicate-the-sprite-and-codes-for-player-2\"><strong>Duplicate The Sprite And Codes For Player 2&nbsp;&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To duplicate the &#8220;Player1&#8221; sprite and codes, right-click on the sprite and select duplicate. As a result, all of the codes and costumes have been copied.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, for Player2, change the car body color so that it is clear which car belongs to Player1 and which belongs to Player2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"403\" height=\"371\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-10.png\" alt=\"Car Racing Game In Scratch \" class=\"wp-image-5221\" style=\"width:302px;height:278px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-10.png 403w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-10-300x276.png 300w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/Car-Racing-Game-In-Scratch-10-150x138.png 150w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Change the coordinate of the &#8220;go to&#8221; block so that it refers to Player2&#8217;s starting position.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And change Player2&#8217;s control to &#8220;a&#8221; as the left arrow and &#8220;d&#8221; as the right arrow. (As a result, we have different control over Player1 and Player2).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remember to create a new variable for the P2 lap!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Voila! Now your Car Racing Game become a multiplayer game!&nbsp;<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Scratch platform lets users create a lot of awesome projects on top of learning computer programming. Because it employs visual <a href=\"https:\/\/brightchamps.com\/blog\/block-based-coding\/\">block-based coding<\/a>, it becomes easy for anyone to create projects such as games and animations in Scratch.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go ahead and create this simple car racing Scratch game and share it with your friends and family.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To get your hands on more such articles, educational content, and free resources on <a href=\"\/\/brightchamps.com\/blog\/kids-coding-languages\/\" target=\"_blank\" rel=\"noreferrer noopener\">coding for kids<\/a>,<a href=\"https:\/\/brightchamps.com\/blog\/robotics-courses-for-kids\/\"> robotics courses for kids<\/a>, game development, etc., check out the <a href=\"https:\/\/brightchamps.com\/blog\/\">BrightCHAMPS Blog Page<\/a> now!<\/p>\n\n\n<div id=\"cstm_banner_cta\"><\/div>\n\n\n<p class=\"wp-block-paragraph\">Learn Scratch 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\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\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faqs\"><strong>Frequently Asked Questions (FAQs)<\/strong><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1647011504723\"><strong class=\"schema-faq-question\"><strong>What is a variable in Scratch?<\/strong><\/strong> <p class=\"schema-faq-answer\">A variable is a type of container that is used to store a value or data.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1647011561116\"><strong class=\"schema-faq-question\"><strong>Why do you set the lap number to (number of laps &#8211; 1) when the car touches the grass?\u00a0<\/strong>\u00a0<\/strong> <p class=\"schema-faq-answer\">Because when the car returns to its starting position (before the lap line) and then passes the lap line, the number of laps resets to its previous lap. For example, if a car hits the grass on the third lap, its lap will be 2 (before passing the lap line), and it will return to the third lap after passing the lap line.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1647011583281\"><strong class=\"schema-faq-question\"><strong>Why do we have to set the direction to 90 in the beginning?<\/strong><\/strong> <p class=\"schema-faq-answer\">Because we don&#8217;t want it to continue in its previous direction, set the direction to 90 when in the starting point.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Scratch is a platform that allows users to express their creativity while learning to code. Scratch Programming is a block-based coding language that makes it simple to create games, animations, and other projects.&nbsp; With this platform, there are countless opportunities for development, and even those just learning to code or young children can produce engaging [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":5223,"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-5212","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>Create A Car Racing Scratch Game [Step-by-Step Guide] - BrightChamps Blog<\/title>\n<meta name=\"description\" content=\"Scratch platform allows you to create fun and interesting games. This blog will show you how to make a Car Racing Scratch Game in few steps which are,\" \/>\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-car-racing-game-scratch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create A Car Racing Scratch Game [Step-by-Step Guide] - BrightChamps Blog\" \/>\n<meta property=\"og:description\" content=\"Scratch platform allows you to create fun and interesting games. This blog will show you how to make a Car Racing Scratch Game in few steps which are,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-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-11T15:17:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-01T10:36:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Car-Racing-Game-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=\"7 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-car-racing-game-scratch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/\"},\"author\":{\"name\":\"Team BrightChamps\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/person\\\/696f52bb580934e5022585ac161e5123\"},\"headline\":\"Create A Car Racing Scratch Game [Step-by-Step Guide]\",\"datePublished\":\"2022-03-11T15:17:31+00:00\",\"dateModified\":\"2024-10-01T10:36:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/\"},\"wordCount\":1025,\"publisher\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Car-Racing-Game-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-car-racing-game-scratch\\\/\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/\",\"name\":\"Create A Car Racing Scratch Game [Step-by-Step Guide] - BrightChamps Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Car-Racing-Game-In-Scratch.png\",\"datePublished\":\"2022-03-11T15:17:31+00:00\",\"dateModified\":\"2024-10-01T10:36:40+00:00\",\"description\":\"Scratch platform allows you to create fun and interesting games. This blog will show you how to make a Car Racing Scratch Game in few steps which are,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011504723\"},{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011561116\"},{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011583281\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#primaryimage\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Car-Racing-Game-In-Scratch.png\",\"contentUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Make-A-Car-Racing-Game-In-Scratch.png\",\"width\":2100,\"height\":1185,\"caption\":\"How To Make A Car Racing Game In Scratch\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-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\":\"Create A Car Racing Scratch Game [Step-by-Step Guide]\"}]},{\"@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-car-racing-game-scratch\\\/#faq-question-1647011504723\",\"position\":1,\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011504723\",\"name\":\"What is a variable in Scratch?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A variable is a type of container that is used to store a value or data.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011561116\",\"position\":2,\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011561116\",\"name\":\"Why do you set the lap number to (number of laps - 1) when the car touches the grass?\u00a0\u00a0\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Because when the car returns to its starting position (before the lap line) and then passes the lap line, the number of laps resets to its previous lap. For example, if a car hits the grass on the third lap, its lap will be 2 (before passing the lap line), and it will return to the third lap after passing the lap line.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011583281\",\"position\":3,\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/how-to-make-car-racing-game-scratch\\\/#faq-question-1647011583281\",\"name\":\"Why do we have to set the direction to 90 in the beginning?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Because we don't want it to continue in its previous direction, set the direction to 90 when in the starting point.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create A Car Racing Scratch Game [Step-by-Step Guide] - BrightChamps Blog","description":"Scratch platform allows you to create fun and interesting games. This blog will show you how to make a Car Racing Scratch Game in few steps which are,","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-car-racing-game-scratch\/","og_locale":"en_US","og_type":"article","og_title":"Create A Car Racing Scratch Game [Step-by-Step Guide] - BrightChamps Blog","og_description":"Scratch platform allows you to create fun and interesting games. This blog will show you how to make a Car Racing Scratch Game in few steps which are,","og_url":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/","og_site_name":"BrightChamps Blog","article_publisher":"https:\/\/www.facebook.com\/BrightChamps-101266664954230\/","article_published_time":"2022-03-11T15:17:31+00:00","article_modified_time":"2024-10-01T10:36:40+00:00","og_image":[{"width":2100,"height":1185,"url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Car-Racing-Game-In-Scratch.png","type":"image\/png"}],"author":"Team BrightChamps","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team BrightChamps","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#article","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/"},"author":{"name":"Team BrightChamps","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/person\/696f52bb580934e5022585ac161e5123"},"headline":"Create A Car Racing Scratch Game [Step-by-Step Guide]","datePublished":"2022-03-11T15:17:31+00:00","dateModified":"2024-10-01T10:36:40+00:00","mainEntityOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/"},"wordCount":1025,"publisher":{"@id":"https:\/\/brightchamps.com\/blog\/#organization"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Car-Racing-Game-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-car-racing-game-scratch\/","url":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/","name":"Create A Car Racing Scratch Game [Step-by-Step Guide] - BrightChamps Blog","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#primaryimage"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Car-Racing-Game-In-Scratch.png","datePublished":"2022-03-11T15:17:31+00:00","dateModified":"2024-10-01T10:36:40+00:00","description":"Scratch platform allows you to create fun and interesting games. This blog will show you how to make a Car Racing Scratch Game in few steps which are,","breadcrumb":{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011504723"},{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011561116"},{"@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011583281"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#primaryimage","url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Car-Racing-Game-In-Scratch.png","contentUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Make-A-Car-Racing-Game-In-Scratch.png","width":2100,"height":1185,"caption":"How To Make A Car Racing Game In Scratch"},{"@type":"BreadcrumbList","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-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":"Create A Car Racing Scratch Game [Step-by-Step Guide]"}]},{"@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-car-racing-game-scratch\/#faq-question-1647011504723","position":1,"url":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011504723","name":"What is a variable in Scratch?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"A variable is a type of container that is used to store a value or data.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011561116","position":2,"url":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011561116","name":"Why do you set the lap number to (number of laps - 1) when the car touches the grass?\u00a0\u00a0","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Because when the car returns to its starting position (before the lap line) and then passes the lap line, the number of laps resets to its previous lap. For example, if a car hits the grass on the third lap, its lap will be 2 (before passing the lap line), and it will return to the third lap after passing the lap line.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011583281","position":3,"url":"https:\/\/brightchamps.com\/blog\/how-to-make-car-racing-game-scratch\/#faq-question-1647011583281","name":"Why do we have to set the direction to 90 in the beginning?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Because we don't want it to continue in its previous direction, set the direction to 90 when in the starting point.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5212","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=5212"}],"version-history":[{"count":8,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5212\/revisions"}],"predecessor-version":[{"id":32382,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5212\/revisions\/32382"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media\/5223"}],"wp:attachment":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media?parent=5212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/categories?post=5212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/tags?post=5212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}