{"id":887,"date":"2026-02-13T09:06:27","date_gmt":"2026-02-13T01:06:27","guid":{"rendered":"https:\/\/edu.circuspi.com\/?p=887"},"modified":"2026-03-09T15:46:26","modified_gmt":"2026-03-09T07:46:26","slug":"7-3-creating-another-sprite","status":"publish","type":"post","link":"https:\/\/edu.circuspi.com\/index.php\/gamebit-en\/7-3-creating-another-sprite\/","title":{"rendered":"7.3 Creating Another Sprite"},"content":{"rendered":"\n<p>Next, let&#8217;s create a second sprite. Click on &#8220;<strong>Sprites<\/strong>&#8221; in the <strong>Block Toolbox<\/strong>, use the create sprite block, place it inside &#8220;<strong>on start<\/strong>,&#8221; and design its appearance (in this example, we selected a <strong>Burger<\/strong> from the Gallery).<\/p>\n\n\n\n<p>You will notice that the default &#8220;<strong>Variable Name<\/strong>&#8221; has changed automatically. The editor does this to prevent errors.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"417\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/eng-07-3_01.png\" alt=\"\" class=\"wp-image-1174\"\/><\/figure>\n\n\n\n<p>Let&#8217;s give these variables meaningful names! The sprite generated by default appears in the center of the screen. Let&#8217;s use the &#8220;<strong>set [mySprite] position to x ( 0 ) y ( 0 )<\/strong>&#8221; block we learned earlier to change the positions of these two sprites.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"341\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/eng-07-3_02.png\" alt=\"\" class=\"wp-image-1175\"\/><\/figure>\n\n\n\n<p>We can categorize sprites into groups to facilitate group control later. In this example, we set the Orange Dinosaur&#8217;s kind to &#8220;<strong>Player<\/strong>&#8221; and the Burger&#8217;s kind to &#8220;<strong>Food<\/strong>.&#8221; You can define these <strong>Kind<\/strong> names yourself.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"583\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/eng-07-3_03.png\" alt=\"\" class=\"wp-image-1176\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Next, let&#8217;s create a second sprite. Click on &#038;#82 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,23],"tags":[],"table_tags":[],"class_list":{"0":"post-887","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\/887","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=887"}],"version-history":[{"count":2,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"predecessor-version":[{"id":1189,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/887\/revisions\/1189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/media\/392"}],"wp:attachment":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=887"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/table_tags?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}