Basic Player Animations — Dungeon Escape Game Dev
Today I go over how I implemented a few player animations for the player in my game
Objective: Go over the animations I implemented for the player character in my Unity 2D mobile game, Dungeon Escape.
To create a 2D animation in Unity, at least with how I want to do things, it is important to have your animated sprites in the Unity editor. For my idle animation, I have about 30 frames of sprites as can be seen below.
Once you have your sprites, open up the Animation window in your editor. It looks like this:
Now, with the GameObject you wish to animate selected, create a new animation by hitting the Create button and saving the generated files somewhere in your game. When done correctly, you should see your animation window change to the animation you just named. Drag-and-drop all of the sprites you will be using for your animation into the Animation window, and you will have a result similar to what you see in the screenshot below.
Your samples will likely say 60, but I changed mine to 15 to make the animation move slower. You can see the result of everything in the GiF below.
Pretty subtle, but adds a bit more life to the game. In the next section are the rest of the movement animations I created for my player.
That’s all for today. Thank you for taking the time to read today’s article. In the next article, I will go over how I created my player’s attack animations.