{"id":5165,"date":"2022-03-11T13:48:39","date_gmt":"2022-03-11T13:48:39","guid":{"rendered":"https:\/\/brightchamps.com\/blog\/?p=5165"},"modified":"2023-12-18T13:27:40","modified_gmt":"2023-12-18T13:27:40","slug":"control-character-with-wasd-in-scratch-repetition-conditionals","status":"publish","type":"post","link":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/","title":{"rendered":"How To Control A Character With WASD In Scratch: Repetition And Conditionals"},"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>How To Control A Character With WASD In Scratch: Repetition And Conditionals<\/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 very powerful platform, where anyone who is a beginner can learn coding.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we all know it is a <a href=\"https:\/\/brightchamps.com\/blog\/block-based-coding\/\">block-based coding<\/a> platform, which means a block can be defined by instruction or command which we give to a sprite, and it moves or acts accordingly.&nbsp;<\/p>\n\n\n<div id=\"cstm_banner_cta\"><\/div>\n\n\n<p class=\"wp-block-paragraph\">In simpler terms, <a href=\"https:\/\/brightchamps.com\/blog\/guides\/scratch-programming\/\">scratch<\/a> enriches the artistic view and logical view of new coders who use the platform.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we all play <a href=\"https:\/\/brightchamps.com\/blog\/create-flying-game-scratch\/\">games<\/a> on our Smartphones, or on Computers we usually encounter the same <strong>control <\/strong>which is <strong>left-right-up-down<\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are four basic game controls available.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have we ever thought about how we might implement those controls?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ve probably played computer games where the default controls are W (Up), A (Left), S (Down), and D (Right) on the keyboard because utilising the arrow keys is more difficult.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, in this article, we&#8217;ll look at how to create a sprite and use the WSAD keys to control it as in a game.<\/p>\n\n\n\n<div id=\"cstm_banner_cta\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-control-a-character-with-wasd-in-scratch\">How to control a Character with WASD in Scratch&nbsp;<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Adding a Sprite and A Backdrop&nbsp;<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here, we are about to make an Alien Game where the Alien has lost its spaceship, and he needs to find it by moving in different directions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So for that, I have added a backdrop named <strong>Space <\/strong>which is best suited for our game.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then we will add a sprite named <strong>Nano <\/strong>which looks like an Alien.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"597\" height=\"483\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-2.png\" alt=\"How To Control A Character With WASD In Scratch\" class=\"wp-image-5172\" style=\"width:448px;height:362px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-2.png 597w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-2-480x388.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 597px, 100vw\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How to make it move&nbsp;<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">As we already know, in our maths class, we have four Quadrants, which we can see below as pictorial representations.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"505\" height=\"532\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-3.png\" alt=\"How To Control A Character With WASD In Scratch \" class=\"wp-image-5174\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-3.png 505w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-3-480x506.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 505px, 100vw\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Four Quadrants<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So we will map our<a href=\"https:\/\/brightchamps.com\/blog\/chaning-location-in-scratch\/\"> movement of the Alien<\/a> according to this Quadrant, which is, on Y-axis, it would move in the upper direction, similarly, in Y` it would move in the lower direction.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same would apply to the X-axis on the right-hand side, it would move in the Positive direction and on the left-hand side it would move in Negative direction.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many of us must be familiar with <strong>IF <\/strong>and <strong>Else, <\/strong>which are called conditions as well.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To sum up, IF and Else are conditional blocks used in either-or-case scenarios. Either the first statement will be true, or the second will be true.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, we will map our control which is W-S-A-D, based on the If block condition.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"448\" height=\"400\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-4.png\" alt=\"How To Control A Character With WASD In Scratch \" class=\"wp-image-5175\" style=\"width:336px;height:300px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-4.png 448w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-4-300x268.png 300w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-4-150x134.png 150w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>IF Block<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So to continue this game we need to move our Alien in all four directions.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8216;Key Space Pressed&#8217; block may be found inside the sensing block, where we must proceed to begin mapping our control.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"368\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-5.png\" alt=\"How To Control A Character With WASD In Scratch\" class=\"wp-image-5176\" style=\"width:330px;height:276px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-5.png 440w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-5-300x251.png 300w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-5-150x125.png 150w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll need to modify that to different keys in order to map our control, so we&#8217;ll change Space to W and then drag this block inside the if block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, our Alien has to travel in that direction if W is pressed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the previous section, we talked about quadrants, so it&#8217;s time to apply to W-S-A-D.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>W means Alien will move Up a step (Y)&nbsp;<\/li>\n\n\n\n<li>S means Alien will move down a step (-Y)&nbsp;<\/li>\n\n\n\n<li>A means Alien will move in the left direction (-X)&nbsp;<\/li>\n\n\n\n<li>D means Alien will move in the right direction (X).&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here we will move our Alien 10 steps at a time.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"582\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-6.png\" alt=\"How To Control A Character With WASD In Scratch \" class=\"wp-image-5177\" style=\"width:334px;height:437px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-6.png 445w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-6-229x300.png 229w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-6-115x150.png 115w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Making it Forever&nbsp;<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So far, we&#8217;ve learned how to use conditions and map our key so that the alien moves in a specific direction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now that our alien must travel as usual, we&#8217;ll return to the Control menu and find for Forever, often known as Loop in computer coding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Loop means &#8220;until the human stops.&#8221; In this case, our Alien must locate his spaceship. We will make him move indefinitely until he finds that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we must collect all of the If parts and drag them into the forever block.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"345\" height=\"387\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-7.png\" alt=\"How To Control A Character With WASD In Scratch \" class=\"wp-image-5178\" style=\"width:259px;height:290px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-7.png 345w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-7-267x300.png 267w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-7-134x150.png 134w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>It&#8217;s time to move our Alien&nbsp;<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To make our alien move we need an ignition tool that will help him move in different directions, which is called <strong>Green Flag.&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"407\" height=\"336\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-8.png\" alt=\"How To Control A Character With WASD In Scratch \" class=\"wp-image-5179\" style=\"width:305px;height:252px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-8.png 407w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-8-300x248.png 300w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-8-150x124.png 150w\" sizes=\"auto, (max-width: 407px) 100vw, 407px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When Green Flag Clicked<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to the Events menu and choose When Green Flag Is Clicked to add it to our game.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order for our Alien to move as intended when we press the green flag button, we must drag it on top of everything.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"697\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-9.png\" alt=\"How To Control A Character With WASD In Scratch\" class=\"wp-image-5180\" style=\"width:302px;height:523px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-9.png 402w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-9-173x300.png 173w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-9-87x150.png 87w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"conclusion\"><strong>Conclusion&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This Game consists addition of an artistic view and a logical view; when we combine them we have our project completed.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To remember those concepts, we can relate them to our real-life experiences, so we will be able to do it more greatly.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we have learned about <strong>Conditions, Quadrants, and Key Mapping. <\/strong>So it will look like this;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-10-1024x512.png\" alt=\"How To Control A Character With WASD In Scratch \" class=\"wp-image-5181\" style=\"width:768px;height:384px\" srcset=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-10-980x490.png 980w, https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch-10-480x240.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\">I hope this article was helpful in understanding how to move a character Up (W) Down (S) Left (A) Right (D). So go ahead and <a href=\"https:\/\/brightchamps.com\/blog\/create-first-scratch-project\/\">create something unique<\/a>.<\/p>\n\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\">You can also take a look at<a href=\"https:\/\/brightchamps.com\/blog\/what-is-coding-for-kids\/\"> what is coding for kids<\/a>.<\/p>\n\n\n\n<div id=\"cstm_banner_cta\"><\/div>\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 <a href=\"https:\/\/brightchamps.com\/blog\/programming-for-kids\/\">programming for kids<\/a> through activities, interactive lessons, and other means. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scratch is a very powerful platform, where anyone who is a beginner can learn coding.&nbsp; As we all know it is a block-based coding platform, which means a block can be defined by instruction or command which we give to a sprite, and it moves or acts accordingly.&nbsp; In simpler terms, scratch enriches the artistic [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":5182,"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-5165","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 Control A Character With WASD In Scratch: Repetition And Conditionals - BrightChamps Blog<\/title>\n<meta name=\"description\" content=\"To control a character with WASD in Scratch, you must first comprehend how the W (Up), A (Left), S (Down), and D (Right) controls work.\" \/>\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\/control-character-with-wasd-in-scratch-repetition-conditionals\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Control A Character With WASD In Scratch: Repetition And Conditionals - BrightChamps Blog\" \/>\n<meta property=\"og:description\" content=\"To control a character with WASD in Scratch, you must first comprehend how the W (Up), A (Left), S (Down), and D (Right) controls work.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/\" \/>\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-11T13:48:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-18T13:27:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-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\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/\"},\"author\":{\"name\":\"Team BrightChamps\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#\\\/schema\\\/person\\\/696f52bb580934e5022585ac161e5123\"},\"headline\":\"How To Control A Character With WASD In Scratch: Repetition And Conditionals\",\"datePublished\":\"2022-03-11T13:48:39+00:00\",\"dateModified\":\"2023-12-18T13:27:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/\"},\"wordCount\":874,\"publisher\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Control-A-Character-With-WASD-In-Scratch.png\",\"keywords\":[\"CodeChamps\"],\"articleSection\":[\"Code for Kids Corner\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/\",\"name\":\"How To Control A Character With WASD In Scratch: Repetition And Conditionals - BrightChamps Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Control-A-Character-With-WASD-In-Scratch.png\",\"datePublished\":\"2022-03-11T13:48:39+00:00\",\"dateModified\":\"2023-12-18T13:27:40+00:00\",\"description\":\"To control a character with WASD in Scratch, you must first comprehend how the W (Up), A (Left), S (Down), and D (Right) controls work.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/#primaryimage\",\"url\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Control-A-Character-With-WASD-In-Scratch.png\",\"contentUrl\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/How-To-Control-A-Character-With-WASD-In-Scratch.png\",\"width\":2100,\"height\":1185,\"caption\":\"How To Control A Character With WASD In Scratch\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/brightchamps.com\\\/blog\\\/control-character-with-wasd-in-scratch-repetition-conditionals\\\/#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 Control A Character With WASD In Scratch: Repetition And Conditionals\"}]},{\"@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\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Control A Character With WASD In Scratch: Repetition And Conditionals - BrightChamps Blog","description":"To control a character with WASD in Scratch, you must first comprehend how the W (Up), A (Left), S (Down), and D (Right) controls work.","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\/control-character-with-wasd-in-scratch-repetition-conditionals\/","og_locale":"en_US","og_type":"article","og_title":"How To Control A Character With WASD In Scratch: Repetition And Conditionals - BrightChamps Blog","og_description":"To control a character with WASD in Scratch, you must first comprehend how the W (Up), A (Left), S (Down), and D (Right) controls work.","og_url":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/","og_site_name":"BrightChamps Blog","article_publisher":"https:\/\/www.facebook.com\/BrightChamps-101266664954230\/","article_published_time":"2022-03-11T13:48:39+00:00","article_modified_time":"2023-12-18T13:27:40+00:00","og_image":[{"width":2100,"height":1185,"url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-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\/control-character-with-wasd-in-scratch-repetition-conditionals\/#article","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/"},"author":{"name":"Team BrightChamps","@id":"https:\/\/brightchamps.com\/blog\/#\/schema\/person\/696f52bb580934e5022585ac161e5123"},"headline":"How To Control A Character With WASD In Scratch: Repetition And Conditionals","datePublished":"2022-03-11T13:48:39+00:00","dateModified":"2023-12-18T13:27:40+00:00","mainEntityOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/"},"wordCount":874,"publisher":{"@id":"https:\/\/brightchamps.com\/blog\/#organization"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch.png","keywords":["CodeChamps"],"articleSection":["Code for Kids Corner"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/","url":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/","name":"How To Control A Character With WASD In Scratch: Repetition And Conditionals - BrightChamps Blog","isPartOf":{"@id":"https:\/\/brightchamps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/#primaryimage"},"image":{"@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/#primaryimage"},"thumbnailUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch.png","datePublished":"2022-03-11T13:48:39+00:00","dateModified":"2023-12-18T13:27:40+00:00","description":"To control a character with WASD in Scratch, you must first comprehend how the W (Up), A (Left), S (Down), and D (Right) controls work.","breadcrumb":{"@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/#primaryimage","url":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch.png","contentUrl":"https:\/\/brightchamps.com\/blog\/wp-content\/uploads\/2022\/03\/How-To-Control-A-Character-With-WASD-In-Scratch.png","width":2100,"height":1185,"caption":"How To Control A Character With WASD In Scratch"},{"@type":"BreadcrumbList","@id":"https:\/\/brightchamps.com\/blog\/control-character-with-wasd-in-scratch-repetition-conditionals\/#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 Control A Character With WASD In Scratch: Repetition And Conditionals"}]},{"@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\/"}]}},"_links":{"self":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5165","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=5165"}],"version-history":[{"count":6,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5165\/revisions"}],"predecessor-version":[{"id":29503,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/posts\/5165\/revisions\/29503"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media\/5182"}],"wp:attachment":[{"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/media?parent=5165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/categories?post=5165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brightchamps.com\/blog\/wp-json\/wp\/v2\/tags?post=5165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}