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.

Idle Animation

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.

More Animations

Player Run Animation
Player Jump Animation

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.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

GK64 Keyboard Review.

NMI Watchdog on Linux

Google Summer Of Code 2019 with CloudCV

SameSite Cookie attribute?

Clash of Kings Optimization Details — Phase 1

Agile Workflow and the Fear of Not Knowing

Simple made Easy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gabe Gomez

Gabe Gomez

More from Medium

Learn to code by making a 2D space shooter game.

Using GameDevHQ’s FileBase Asset Database For HQ Models

Creating Coin Distraction Feature in Unity (Part 4: Make Guards Go Back to the Waypoints Path)

The simplest way to create a First Person Shooter! (Part 1)