{"id":138184,"date":"2025-01-16T18:08:38","date_gmt":"2025-01-16T12:38:38","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?page_id=138184"},"modified":"2025-01-16T18:08:38","modified_gmt":"2025-01-16T12:38:38","slug":"tutorial-5-creating-the-enemies","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/","title":{"rendered":"Tutorial 5 &#8211; Creating the Enemies"},"content":{"rendered":"\n<p>In Unreal Engine, creating enemies is an exciting way to bring your game to life. This tutorial will guide you through setting up an enemy character that can move, detect the player, and perform simple actions.<\/p>\n\n\n\n<p>Start by creating a new Blueprint Class. Choose &#8220;Character&#8221; as the parent class because it includes built-in movement and animation functionality. Name it &#8220;Enemy_BP.&#8221;<\/p>\n\n\n\n<p>Open the Blueprint and add components to define the enemy&#8217;s appearance and behavior. Start by adding a &#8220;Static Mesh&#8221; or &#8220;Skeletal Mesh&#8221; component for the enemy\u2019s visual model. Choose a pre-made mesh from the Content Browser or import your own. Adjust its position and scale as needed.<\/p>\n\n\n\n<p>Next, add a &#8220;Capsule Component&#8221; around the enemy to handle collisions. This ensures the enemy can detect obstacles or interactions. Adjust the size of the capsule to fit around the enemy&#8217;s mesh.<\/p>\n\n\n\n<p>To make the enemy move, open the Event Graph. Add a &#8220;Begin Play&#8221; event to initialize the enemy\u2019s behavior. Use the &#8220;AI Move To&#8221; node to make the enemy move to a specific target. For example, place a target actor in the level and set it as the destination. You can repeat this action using a loop or randomize the target to create patrol behavior.<\/p>\n\n\n\n<p>To detect the player, add a &#8220;Pawn Sensing&#8221; component to the Blueprint. In the Details panel, enable sensing features like &#8220;Sight&#8221; and set the sensing range and angle. Use the &#8220;On See Pawn&#8221; event to trigger actions when the player enters the enemy\u2019s vision. For instance, you can make the enemy chase the player using another &#8220;AI Move To&#8221; node.<\/p>\n\n\n\n<p>Add logic for the enemy to perform actions when close to the player. For example, use a &#8220;Box Collision&#8221; component around the enemy\u2019s attack area. Add an &#8220;On Component Begin Overlap&#8221; event to trigger damage or animations when the player enters the box.<\/p>\n\n\n\n<p>Enhance the enemy by adding variables like health. Create a &#8220;Health&#8221; variable and reduce its value when the player attacks the enemy. Use a &#8220;Branch&#8221; node to check if the health reaches zero, and trigger a &#8220;Destroy Actor&#8221; node to remove the enemy from the game.<\/p>\n\n\n\n<p>Finally, test the enemy by placing instances of &#8220;Enemy_BP&#8221; in your level. Play the game to see if they move, detect the player, and perform their actions correctly. Adjust settings like speed, sensing range, and attack damage to balance the gameplay.<\/p>\n\n\n\n<p>This setup creates a basic enemy with movement, player detection, and actions. You can expand its behavior further by adding animations, sounds, or advanced AI logic.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.vskills.in\/certification\/unreal-engine-online-course\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png\" alt=\"enemies\" class=\"wp-image-137870\" srcset=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png 961w, https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners-300x47.png 300w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In Unreal Engine, creating enemies is an exciting way to bring your game to life. This tutorial will guide you through setting up an enemy character that can move, detect the player, and perform simple actions. Start by creating a new Blueprint Class. Choose &#8220;Character&#8221; as the parent class because it includes built-in movement and&#8230;<\/p>\n","protected":false},"author":21,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[10414],"tags":[10423],"class_list":["post-138184","page","type-page","status-publish","hentry","category-unreal-engine","tag-unreal-engine"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tutorial 5 - Creating the Enemies - Tutorial<\/title>\n<meta name=\"description\" content=\"In Unreal Engine, creating enemies is an exciting way to bring your game to life. You can learn more with the help of this tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tutorial 5 - Creating the Enemies - Tutorial\" \/>\n<meta property=\"og:description\" content=\"In Unreal Engine, creating enemies is an exciting way to bring your game to life. You can learn more with the help of this tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png\" \/>\n\t<meta property=\"og:image:width\" content=\"961\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/\",\"name\":\"Tutorial 5 - Creating the Enemies - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png\",\"datePublished\":\"2025-01-16T12:38:38+00:00\",\"description\":\"In Unreal Engine, creating enemies is an exciting way to bring your game to life. You can learn more with the help of this tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#primaryimage\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png\",\"width\":961,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial 5 &#8211; Creating the Enemies\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial 5 - Creating the Enemies - Tutorial","description":"In Unreal Engine, creating enemies is an exciting way to bring your game to life. You can learn more with the help of this tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/","og_locale":"en_US","og_type":"article","og_title":"Tutorial 5 - Creating the Enemies - Tutorial","og_description":"In Unreal Engine, creating enemies is an exciting way to bring your game to life. You can learn more with the help of this tutorial.","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","og_image":[{"width":961,"height":150,"url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png","type":"image\/png"}],"twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/","name":"Tutorial 5 - Creating the Enemies - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png","datePublished":"2025-01-16T12:38:38+00:00","description":"In Unreal Engine, creating enemies is an exciting way to bring your game to life. You can learn more with the help of this tutorial.","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#primaryimage","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2025\/01\/practice-test-banners.png","width":961,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/tutorial-5-creating-the-enemies\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Tutorial 5 &#8211; Creating the Enemies"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/138184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=138184"}],"version-history":[{"count":2,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/138184\/revisions"}],"predecessor-version":[{"id":138187,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/138184\/revisions\/138187"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=138184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=138184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=138184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}