{"id":868,"date":"2026-02-12T17:17:53","date_gmt":"2026-02-12T09:17:53","guid":{"rendered":"https:\/\/edu.circuspi.com\/?p=868"},"modified":"2026-03-11T14:57:07","modified_gmt":"2026-03-11T06:57:07","slug":"4-2-controlling-your-sprite","status":"publish","type":"post","link":"https:\/\/edu.circuspi.com\/index.php\/gamebit-en\/4-2-controlling-your-sprite\/","title":{"rendered":"4.2 Controlling Your Sprite"},"content":{"rendered":"\n<p>Now that the Sprite is drawn, we can&#8217;t just let it sit motionless in the center of the screen, right?<\/p>\n\n\n\n<p>Let&#8217;s make it move with the joystick immediately.<\/p>\n\n\n\n<p>First, click on <strong>&#8220;Controller&#8221;<\/strong> in the <strong>Block Toolbox<\/strong> and select the <strong>&#8220;move [mySprite] with buttons&#8221;<\/strong> block.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1186\" height=\"904\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f104-2_01.png\" alt=\"\" class=\"wp-image-1103\"\/><\/figure>\n\n\n\n<p>Drag this block into the <strong>&#8220;on start&#8221;<\/strong> block and place it under the Sprite creation block we just set up. This grants our Sprite the ability to move with the joystick!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"267\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f104-2_02.jpg\" alt=\"\" class=\"wp-image-1546\"\/><\/figure>\n\n\n\n<p>Try controlling the joystick in the <strong>Game Simulator<\/strong>, as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"240\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f104-2_03.gif\" alt=\"\" class=\"wp-image-1105\"\/><\/figure>\n\n\n\n<p>Almost all assets in a game are Sprites. You can use what you&#8217;ve learned in this unit to create the protagonist, level elements, buildings, or cute companions for your game. Besides joystick control, there are many other ways to interact. Please practice often and create your own game! \ud83c\udfae\ud83c\udfae\ud83c\udfae<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that the Sprite is drawn, we can&#8217;t just let i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":320,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,23],"tags":[],"table_tags":[],"class_list":{"0":"post-868","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-gamebit-en","8":"category-freeinfo-en","9":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/comments?post=868"}],"version-history":[{"count":3,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":1549,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/868\/revisions\/1549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/media\/320"}],"wp:attachment":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=868"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/table_tags?post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}