{"id":147,"date":"2024-02-25T08:19:20","date_gmt":"2024-02-25T08:19:20","guid":{"rendered":"https:\/\/wildtechgames.com\/?p=147"},"modified":"2024-03-09T19:51:24","modified_gmt":"2024-03-09T19:51:24","slug":"my-unreal-engine-learning-journey-day-23-torch-pickups","status":"publish","type":"post","link":"https:\/\/wildtechgames.com\/?p=147","title":{"rendered":"My Unreal Engine Learning Journey \u2013 Day 23 \u2013 Torch Pickups"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction:<\/h2>\n\n\n\n<p>Today I added a torch pickup in the game and an interactive widget on screen.  Pretty simple, but can be expanded to other items in the future.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"696\" src=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-21-1024x696.png\" alt=\"\" class=\"wp-image-149\" srcset=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-21-1024x696.png 1024w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-21-300x204.png 300w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-21-768x522.png 768w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-21.png 1427w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Torch Pickup:<\/h2>\n\n\n\n<p>Not much to this one. The torch was already created, so I first duplicated the torch blueprint.  Had to add a widget with a canvas and text indicating the player can press a key to pick up the torch.  I changed the render space from view from &#8216;world&#8217; to &#8216;screen&#8217;, which means the text inside the widget will always face the player&#8217;s screen.  I added a collision sphere so when the player enters the sphere the widget pops up on screen.  <br><br>Simple stuff, but all that was left was to drag the torch pickup into the level itself.  Also had to add the event graph blueprints that made the widget visible when approached and invisible when the player walked a certain distance away from the torch.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"748\" src=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-22-1024x748.png\" alt=\"\" class=\"wp-image-150\" srcset=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-22-1024x748.png 1024w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-22-300x219.png 300w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-22-768x561.png 768w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-22-1536x1122.png 1536w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-22.png 1565w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion:<\/h2>\n\n\n\n<p>I hope to finish off this section of the tutorial tomorrow which means making the torch pick up show up in the players hands when they press a key to pick it up. In addition I&#8217;ll be adding a spider web obstacle into the game for the player to burn using the torch.  <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"My Unreal Engine Learning Journey \u2013 Day 23 \u2013 Torch Pickups\" width=\"640\" height=\"480\" src=\"https:\/\/www.youtube.com\/embed\/X5-u-GC6g0k?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>Introduction: Today I added a torch pickup in the game and an interactive widget on screen. Pretty simple, but can be expanded to other items in the future. Torch Pickup: Not much to this one. The torch was already created, so I first duplicated the torch blueprint. Had to add a widget with a canvas [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1,8],"tags":[10,11,14,9],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/147"}],"collection":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":4,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":153,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions\/153"}],"wp:attachment":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}