{"id":234,"date":"2024-03-12T06:37:22","date_gmt":"2024-03-12T06:37:22","guid":{"rendered":"https:\/\/wildtechgames.com\/?p=234"},"modified":"2024-03-12T06:37:23","modified_gmt":"2024-03-12T06:37:23","slug":"my-unreal-engine-learning-journey-day-37-more-enemies","status":"publish","type":"post","link":"https:\/\/wildtechgames.com\/?p=234","title":{"rendered":"My Unreal Engine Learning Journey \u2013 Day 37 \u2013 More Enemies"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction:<\/h2>\n\n\n\n<p>Today I added more enemies to the game that will eventually be armed and shoot back at the player.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"774\" src=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-21-1024x774.png\" alt=\"\" class=\"wp-image-236\" srcset=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-21-1024x774.png 1024w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-21-300x227.png 300w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-21-768x580.png 768w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-21-1536x1160.png 1536w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-21.png 1607w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">More Enemies: <\/h2>\n\n\n\n<p>I copied the metahuman blueprint from the other guards and created a new type, the EnemyArmedGuard.  In order to make him look different I simply changed his shirt to a difference color, gold (thank you Grandma&#8217;s Boy for that idea! &#8211; guilty pleasure movie).  <br><br>On the blueprint side of things I more or less copied what I had previously done for the planks. I gave him HP, ability to take damage, and he ragdolls when his HP reaches zero.  <br><br>Something pointed out in the tutorial I followed, but I also wanted to mention here is that most of the damage and other blueprint nodes related to HP are on the &#8216;Event AnyDamage&#8217; node, so that it&#8217;s only processing when the enemy actually takes damage.  This is a much better approach than using the &#8216;Event Tick&#8217;, which occurs every single frame and could end up created poor performance for the user.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"764\" src=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-22-1024x764.png\" alt=\"\" class=\"wp-image-237\" srcset=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-22-1024x764.png 1024w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-22-300x224.png 300w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-22-768x573.png 768w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-22-1536x1146.png 1536w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/03\/image-22.png 1671w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion:<\/h2>\n\n\n\n<p>This was a simple addition to the game, but most of what I did today was done on my own without tutorial help. Many times throughout the tutorial I&#8217;m following there will be challenges, where they ask you to figure it out on your own using the skills you&#8217;ve learned so far before they show how they did it.  <\/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 37 \u2013 More Enemies\" width=\"640\" height=\"480\" src=\"https:\/\/www.youtube.com\/embed\/vNBOjTq3t24?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 more enemies to the game that will eventually be armed and shoot back at the player. More Enemies: I copied the metahuman blueprint from the other guards and created a new type, the EnemyArmedGuard. In order to make him look different I simply changed his shirt to a difference color, gold [&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],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/234"}],"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=234"}],"version-history":[{"count":5,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions\/241"}],"wp:attachment":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}