{"id":600,"date":"2021-06-11T03:32:18","date_gmt":"2021-06-11T03:32:18","guid":{"rendered":"https:\/\/lucyestela.com\/dev\/?p=600"},"modified":"2021-06-11T03:32:54","modified_gmt":"2021-06-11T03:32:54","slug":"unreal-assigning-keyboard-controls-to-trigger-animations","status":"publish","type":"post","link":"https:\/\/lucyestela.com\/dev\/unreal\/unreal-assigning-keyboard-controls-to-trigger-animations\/","title":{"rendered":"Unreal &#8211; Assigning Keyboard Controls to Trigger Animations"},"content":{"rendered":"<div class=\"boldgrid-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-md-12 col-xs-12 col-sm-12\">\n<div class=\"col-md-12 col-xs-12 col-sm-12\">\n<h3 class=\"\">ASSIGN CONTROLS TO TRIGGER ANIMATIONS<\/h3>\n<p class=\"\">Now I want to trigger the different animations based on the keyboard input, so to do that I need to set up some input controls in the Project Settings. So go to EDIT &gt; PROJECT SETTINGS<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-554\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-300x168.jpg\" alt=\"\" width=\"686\" height=\"384\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-300x168.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-1024x573.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-768x430.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-250x140.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-550x308.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-800x448.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-322x180.jpg 322w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-536x300.jpg 536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1-894x500.jpg 894w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup1.jpg 1228w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">And then scroll down to INPUT and then we are going to add in some new Action Mappings so click on the little plus sign next to the title.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-564\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-300x191.jpg\" alt=\"\" width=\"690\" height=\"439\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-300x191.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-1024x653.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-768x490.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-250x160.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-550x351.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-282x180.jpg 282w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-470x300.jpg 470w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1-784x500.jpg 784w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup2-1.jpg 1285w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Give your action a name, here I have just named it the animation title, then click the small keyboard button underneath and assign the key input for that action. Do that for all the animations you have imported.<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-565\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-300x191.jpg\" alt=\"\" width=\"690\" height=\"439\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-300x191.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-1024x653.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-768x490.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-250x160.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-550x351.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-282x180.jpg 282w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-470x300.jpg 470w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1-784x500.jpg 784w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/setup3-1.jpg 1285w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Now we want to tell our character to use these inputs and to play the animations when it detects them, so to do that we first need to set up an animation blueprint.<\/p>\n<p class=\"\">We do that by going to our Content Browser and selecting ADD &gt; ANIMATION&gt; ANIMATION BLUEPRINT<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-559\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-300x200.jpg\" alt=\"\" width=\"686\" height=\"457\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-300x200.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-1024x682.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-768x511.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-250x166.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-550x366.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-800x532.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-270x180.jpg 270w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-451x300.jpg 451w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3-751x500.jpg 751w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/input3.jpg 1501w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<\/div>\n<p class=\"\">&nbsp;<\/p>\n<div class=\"col-md-12 col-xs-12 col-sm-12\">\n<p class=\"\">and select your characters skeleton to link the animation to.<\/p>\n<p class=\"\">Now let&#8217;s go back to the character blueprint and link this Animation Blueprint to our character. Open up your character blueprint, select the mesh in the left hand side <strong>Components<\/strong> panel, and then in the right hand side <strong>Details<\/strong> panel scroll to the <strong>Animation<\/strong> tab. Make sure <strong>Animation Mode<\/strong> is <strong>Use Animation Blueprint<\/strong> and the for the <strong>Anim Class<\/strong> use the dropdown to select the Animation Blueprint you just created.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-576\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-300x183.jpg\" alt=\"\" width=\"685\" height=\"418\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-300x183.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-1024x626.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-768x470.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-1536x939.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-250x153.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-550x336.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-800x489.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-294x180.jpg 294w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-491x300.jpg 491w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2-818x500.jpg 818w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim2.jpg 1678w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/p>\n<h3 class=\"\">defining character variables based on input<\/h3>\n<p class=\"\">So what I want to do is have the character play an animation based on the user input. So to do that I&#8217;m going to declare a few boolean values to be true or false dependent on the keys being pressed and released.<\/p>\n<p class=\"\">So go into your character blueprint and in the <strong>My Blueprint<\/strong> panel on the bottom left, go to the <strong>Variables<\/strong> section and click on the <strong>+Variable<\/strong> button to add variables. Add as many as you need.&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-569\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-300x225.jpg\" alt=\"\" width=\"683\" height=\"512\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-1024x769.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-768x577.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-1536x1154.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-250x188.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-550x413.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-800x601.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-399x300.jpg 399w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1-666x500.jpg 666w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint1.jpg 1639w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Now go into the event graph, right click and look for the first Input Action that you defined in the Project Settings Input panel and add it as a node. Mine was Defeated<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-570\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-300x225.jpg\" alt=\"\" width=\"681\" height=\"511\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-1024x769.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-768x577.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-1536x1154.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-250x188.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-550x413.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-800x601.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-399x300.jpg 399w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2-666x500.jpg 666w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint2.jpg 1639w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Now you need to set your variables based on the button being pressed and released. We set the variables here and then in the animation blueprint we will read their value and play the required animations.<\/p>\n<p class=\"\">So when the button is pressed we want this character to set its variable to true and then when the button is released we will give it a delay for the length of the animation and reset it to false so that the animation can reset to the idle state.&nbsp;<\/p>\n<p class=\"\">To set your variables, right click and search for <strong>set varName <\/strong>where varName is your variable name. Mine is <strong>isDefeated<\/strong>.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-571\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-300x225.jpg\" alt=\"\" width=\"683\" height=\"512\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-1024x769.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-768x577.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-1536x1154.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-250x188.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-550x413.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-800x601.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-399x300.jpg 399w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3-666x500.jpg 666w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint3.jpg 1639w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/> &nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">The whole node set up will look like this. Don&#8217;t forget to tick the box for the variable when you want it to be true.<\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-572\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-300x225.jpg\" alt=\"\" width=\"681\" height=\"511\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-1024x769.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-768x577.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-1536x1154.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-250x188.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-550x413.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-800x601.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-399x300.jpg 399w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4-666x500.jpg 666w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint4.jpg 1639w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>I have 5 different variables to set for my 5 different animations, so my character event graph looks like this<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-574\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-300x225.jpg\" alt=\"\" width=\"683\" height=\"512\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-1024x769.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-768x577.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-1536x1154.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-250x188.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-550x413.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-800x601.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-399x300.jpg 399w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5-666x500.jpg 666w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/charblueprint5.jpg 1639w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<h3 class=\"\">setting up the animation blueprint<\/h3>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Right so our character is set up all ready to receive input an has the boolean variables updating correctly. Now we just need to tell it what animations to play in the Animation Blueprint. So go open up your animation blueprint and click on the AnimGraph tab and the first thing we&#8217;re going to do is right click to <strong>Add new state machine<\/strong><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-577\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim3.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">And you&#8217;ll link it up to the result animation<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-578\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim4.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Double click the New State Machine node to open it up. Then what we&#8217;re going to do in here is add all the animations that our character can move between, and we&#8217;ll set up some rules for when it can go into the animations and back again. We will be referencing the boolean variables we set up in our character blueprint for that , but for now let&#8217;s just link up our animations.<\/p>\n<p class=\"\">Right click and <strong>Add State<\/strong> and call this one <strong>Idle.&nbsp;<\/strong>This will be our default standing\/hanging around doing nothing state. Drag an arrow from <strong>Entry<\/strong> to <strong>Idle<\/strong>.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-580\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim6.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">And double click on Idle to open it up. Now on the right hand side you&#8217;ll see a tab for Asset Browser. Click on that and you will see all the animations associated with the skeleton. Choose the idle on and drag it into the graph. And then click and drag a connection between the two little human figures. So that is your Idle animation set up and since you have linked to it from the Entry node, it will go straight to it onload.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-581\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim7.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p class=\"\">But we have a lot of animations we want to play when different keys are pressed. So we will go back out to the New State Machine and do the exact same thing to se up the other animations. We&#8217;ll link&nbsp; them up and make conditions for when they play next.<\/p>\n<p class=\"\">So your new state machine will look something like the image below, and inside each state you will have linked up the appropriate animation as you did in the image above.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-584\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim8.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">Now link up all the animations to the Idle so that the character can alternate between them. Just click and drag from Idle to the State until you see the little blue and red icon with Create a Transition tag.&nbsp; Make transitions both to the states and back from them to the Idle state. It should end up looking something like this.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-586\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim10.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">Now the next thing we need to do is to create some local variables that the state machine can use to know when it should trigger animations. We will define the variables here, but we will assign their value based on the value of the corresponding variable in the character blue print. IE the ones we assigned when the keys were pressed. So for me here I&#8217;m going to name them playDefeated, playDismissive, playNervous, playWalking and playHappy and I&#8217;m going to define them in the Animation Blueprint in the Variables tab in the My Blueprint panel on the left hand side. just click the + sign and type in your variable names. We will get their value in the next step.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-588\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim11.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Now go into the Event Graph of the Animation Blueprint and we will grab the values from out character Blueprint. To do that we need to cast to the character blueprint. So right click and type in <strong>Cast to<\/strong> and then your character blueprint name. Mine is <strong>AkaiCharacter<\/strong> so I will type <strong>Cast To AkaiCharacter<\/strong>. It will come up in the list as you start typing.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-590\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-300x225.jpg\" alt=\"\" width=\"688\" height=\"516\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim12.jpg 1573w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/p>\n<p class=\"\">Link up the nodes as shown below and then drag out a pin from the cast node and get the first animation variable you defined in your character blueprint. Mine is isDefeated, and then assign it to your local Animation Blueprint variable. Mine is playDefeated. Link them up as shown.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-591\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-300x225.jpg\" alt=\"\" width=\"688\" height=\"516\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim14.jpg 1573w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">Now get and assign all your other variables. It should end up looking something like this.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-592\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-300x240.jpg\" alt=\"\" width=\"688\" height=\"550\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-300x240.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-1024x819.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-768x614.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-250x200.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-550x440.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-800x640.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-225x180.jpg 225w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-375x300.jpg 375w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15-625x500.jpg 625w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim15.jpg 1312w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">So now that we have all the variables from the Character Blueprint assign to local variables in the Animation Blueprint, we can use them to tell the state machine when to play the various animation states that we set up. So go into the state machine tab and double click on the first circle leading from the Idle state to your first animation.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-594\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-300x225.jpg\" alt=\"\" width=\"688\" height=\"516\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim16.jpg 1573w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/p>\n<p class=\"\">Right click and GET the variable that you want to be true for the animation to play. Mine is playDefeated. Link it up to the result node.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-595\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-300x225.jpg\" alt=\"\" width=\"687\" height=\"515\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim17.jpg 1573w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Now go back out to the state machine and double click on the circle that leads back from your animation state to the idle state. Now we want the character to return to the idle when the playDefeated variable returns to false. (this is set in the character blueprint and passed through into the Animation Eventgraph remember). So we need to get the variable again, but add in a NOT to make it negative. See below.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-596\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-300x225.jpg\" alt=\"\" width=\"689\" height=\"517\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim18.jpg 1573w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/p>\n<p class=\"\">Do the same for the other animation states and hit COMPILE.<\/p>\n<p>&nbsp;<\/p>\n<p>Now as you hover over the circles, the conditions that you just defined will show up.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-598\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-300x225.jpg\" alt=\"\" width=\"689\" height=\"517\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-1024x767.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-768x575.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-1536x1150.jpg 1536w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-800x599.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-401x300.jpg 401w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19-668x500.jpg 668w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2021\/05\/anim19.jpg 1573w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>ASSIGN CONTROLS TO TRIGGER ANIMATIONS Now I want to trigger the different animations based on the keyboard input, so to do that I need to set up some input controls in the Project Settings. So go to EDIT &gt; PROJECT SETTINGS &nbsp; &nbsp; And then scroll down to INPUT and then we are going to &#8230; <a title=\"Unreal &#8211; Assigning Keyboard Controls to Trigger Animations\" class=\"read-more\" href=\"https:\/\/lucyestela.com\/dev\/unreal\/unreal-assigning-keyboard-controls-to-trigger-animations\/\" aria-label=\"More on Unreal &#8211; Assigning Keyboard Controls to Trigger Animations\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[65,64,66,63,59],"tags":[],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-animation-blueprint","category-character-animation","category-character-blueprint","category-mixamo","category-unreal"],"_links":{"self":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":1,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/600\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}