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

Startup Containers in Lightning Speed with Lazy Image Distribution on Containerd

“If it turns out that this is incurable, would you marry me?”

Using Git Hooks to Run Rubocop, Brakeman, and Rspec

Cloud rendering: A WebGL alternative on the rise

Airflow : Deployment

Making Pixel art using Python (Minecraft Edition)

Tutorial Assertj in Netbeans 11 with maven

TryHackMe | CTF | WebDevelopers

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

2D Mobile Game: Tilemaps

Pushing a box

Creating Fog in Unity

How To Play Sound Effects In Unity (Creating A Global Sound Manager)