{"id":695,"date":"2024-12-09T21:47:12","date_gmt":"2024-12-09T21:47:12","guid":{"rendered":"https:\/\/sites.wsagames.com\/hm3g23\/?page_id=695"},"modified":"2024-12-10T05:04:02","modified_gmt":"2024-12-10T05:04:02","slug":"unlocking-door-with-password","status":"publish","type":"page","link":"https:\/\/sites.wsagames.com\/hm3g23\/unlocking-door-with-password\/","title":{"rendered":"Unlocking Door with Password"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span style=\"text-decoration: underline\">Unlocking Door<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Since my game is mostly mystery adventure around the space station there is obviously going to be locked doors, so I wanted to try to make a door that needed a code to unlock.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I used a tutorial to complete this prototype by UnrealART on YouTube:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Open Doors With A Password In Unreal Engine 5 Using Blueprints\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/_PCp21x2pCI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"text-decoration: underline\">Door<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I had various issues with the door since I tried creating the frame and door panels from scratch on unreal.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"512\" height=\"385\" src=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-14.png\" alt=\"\" class=\"wp-image-699\" style=\"width:400px;height:auto\" srcset=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-14.png 512w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-14-300x226.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">My first attempt was a failure since I couldn&#8217;t turn these scene models into a mesh and into my content folder. However I did get to learn a bit of modelling on Unreal.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"590\" height=\"630\" src=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-15.png\" alt=\"\" class=\"wp-image-700\" style=\"width:430px;height:auto\" srcset=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-15.png 590w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-15-281x300.png 281w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">My second attempt was better since I used already existing assets from within blender (I gave up on modelling my own door). I created two panels in-between the frame, one would go up and the other down.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"text-decoration: underline\">Nodes for Movement <\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"842\" height=\"256\" src=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-17.png\" alt=\"\" class=\"wp-image-702\" srcset=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-17.png 842w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-17-300x91.png 300w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-17-768x234.png 768w\" sizes=\"(max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This is the nodes to move my door panels and to also activate when I press &#8216;E&#8217; inside the box collider I set up. I spent a very long time on this which should be simple since my &#8216;doorUp&#8217; movement wasn&#8217;t working, I eventually gave up and decide to just have a panel that covers the whole door and slides down.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"403\" src=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-18.png\" alt=\"\" class=\"wp-image-703\" srcset=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-18.png 763w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-18-300x158.png 300w\" sizes=\"(max-width: 763px) 100vw, 763px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">These are the nodes for the one door movement with a timeline to make the movement smooth and not a quick snap in location.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"503\" src=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-19.png\" alt=\"\" class=\"wp-image-704\" srcset=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-19.png 456w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-19-272x300.png 272w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"text-decoration: underline\">Creating Numpad<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Inside my designer tab I placed out buttons on a canvas to make my numpad.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"539\" src=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-20.png\" alt=\"\" class=\"wp-image-705\" style=\"width:460px;height:auto\" srcset=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-20.png 643w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-20-300x251.png 300w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After this I had to assign nodes to each individual button which is simple since I mostly copy n paste a node line from one of the numbers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"806\" height=\"559\" src=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-21.png\" alt=\"\" class=\"wp-image-708\" srcset=\"https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-21.png 806w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-21-300x208.png 300w, https:\/\/sites.wsagames.com\/hm3g23\/wp-content\/uploads\/sites\/17\/2024\/12\/image-21-768x533.png 768w\" sizes=\"(max-width: 806px) 100vw, 806px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"text-decoration: underline\">Final Unlocking Door Mechanic<\/span><\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Unlocking Door Mechanic\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/8-kIDDnNg5M?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Unlocking Door Since my game is mostly mystery adventure around the space station there is obviously going to be locked&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-695","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/pages\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/comments?post=695"}],"version-history":[{"count":3,"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/pages\/695\/revisions"}],"predecessor-version":[{"id":709,"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/pages\/695\/revisions\/709"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/hm3g23\/wp-json\/wp\/v2\/media?parent=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}