{"id":337,"date":"2024-09-20T18:23:06","date_gmt":"2024-09-20T18:23:06","guid":{"rendered":"https:\/\/johnnycarlos.com\/?p=337"},"modified":"2025-10-18T21:36:15","modified_gmt":"2025-10-18T21:36:15","slug":"godot-tutorial-first-rpg-tilemaplayers","status":"publish","type":"post","link":"https:\/\/johnnycarlos.com\/index.php\/2024\/09\/20\/godot-tutorial-first-rpg-tilemaplayers\/","title":{"rendered":"Godot Tutorial:  First RPG TileMapLayers"},"content":{"rendered":"\n<p>Click the game image, then use Arrow Keys to move player around:<\/p>\n\n\n\n<p align=\"center\">\n<iframe loading=\"lazy\" id=\"\" src=\"https:\/\/johnnycarlos.com\/games\/FirstRPGTutorialTileMaps\/RPGTutorial.html\" name=\"\" width=\"1152\" height=\"648\" frameborder=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/p>\n\n\n\n<p>Had some challenges with this one so here&#8217;s some notes for me to remember what I did&#8230;<\/p>\n\n\n\n<p>I&#8217;ve been pressing F5 to see my work but didn&#8217;t realize that&#8217;s the &#8220;Current Scene&#8221;.  F6 runs the project, but only if you have correctly assigned the Main Scene in: Project -&gt; Project Settings -&gt; Application -&gt; Run -&gt; Main Scene:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"202\" src=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/image-2.png\" alt=\"\" class=\"wp-image-346\" srcset=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/image-2.png 1016w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/image-2-300x60.png 300w, https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/image-2-768x153.png 768w\" sizes=\"auto, (max-width: 1016px) 100vw, 1016px\" \/><\/figure>\n\n\n\n<p>After that, the challenge was my player was hidden in the background, I could only see it be tweaking Z Index:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"252\" height=\"119\" src=\"https:\/\/johnnycarlos.com\/wp-content\/uploads\/2024\/09\/image-3.png\" alt=\"\" class=\"wp-image-347\"\/><\/figure>\n\n\n\n<p>And finally, I noticed TileMaps were deprecated and should be converted to TileMapLayers.  Found some good insight <a href=\"https:\/\/www.youtube.com\/watch?v=ZutpG0_CYrQ\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=ZutpG0_CYrQ\">in this video<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Click the game image, then use Arrow Keys to move player around: Had some challenges with this one so here&#8217;s some notes for me to remember what I did&#8230; I&#8217;ve been pressing F5 to see my work but didn&#8217;t realize that&#8217;s the &#8220;Current Scene&#8221;. F6 runs the project, but only if you have correctly assigned [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":341,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"cybocfi_hide_featured_image":"yes","footnotes":""},"categories":[22],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-godot"],"_links":{"self":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":11,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/337\/revisions\/363"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/media\/341"}],"wp:attachment":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/media?parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/categories?post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/tags?post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}