
UNITY 2019 HOW TO MAKE UI TUTORIAL APRIL PLUS
Next, select Parameters tab, then click on the plus button and select Bool to create a boolean animator parameter.Ĭlick again the plus button and select Bool and name the parameter Is_Moving_Side. Open your animator window by going to Window Tab > Animation > Animator. Now that we have set up our player attack animations, let’s proceed to our animator and create a new parameter to help our animator change from either idle animation to attack animation or walking to attacking. You should have the following animations. Drag the sprites into animation timeline.Look for folders hero-attack-back and hero-attack-side.Move the second keyframe in 0:10 and move the last keyframe in 0:20.Ĭreate new animations for Attack_Up and Attack_Side.

Next, adjust the keyframes in the timeline. Next, go to your project window and look for the folder hero-attack-front and drag all the sprites into the animation timeline. Next, select the drop-down menu for the list of animations. Make sure you select your Player object and go to your animation window. Since we have already created a script for our player, let’s go back to our animation window (CTRL + 6) and add create animations. If you have already followed our previous lesson then you should be able to make your character move around the platform. Read more: Unity 2D Animation: Top-Down Unity Player Movement

If by any chance, you haven’t followed the said tutorial, we suggest reading it before proceeding with this tutorial.

We’ll be using the same project that we have created in the last Unity tutorial which is the top-down player movement tutorial.
