How to animate Sprite Sheets in Godot using AnimationPlayer (beginner tutorial)

preview_player
Показать описание
In this tutorial, we learn to use the AnimationPlayer node provided by Godot 3.2! AnimationPlayer is a really useful and intuitive tool for creating animations out of 2D sprite sheets. We'll also cover adding layers to a character that animate in sync with the body.

Our next video will dive a little deeper into more possibilities of this tool. I'll link it here as soon as that video is ready!

*** Links ***

Download the assets for this video:

Build full games with me here:

Join us in our Discord:

Join my Email List:

Me on Twitter:

My first game on Steam (Danger Crew)

*** Timestamps: ***

0:00:00: Intro
0:00:51: Creating the Character
0:02:05: Sprite Sheets in Godot
0:03:50: AnimationPlayer
0:04:45: Frame track
0:07:40: Adding a hat
0:09:30: Animating hat position
0:11:00: Toggling layers
Рекомендации по теме
Комментарии
Автор

Hey friends, this one is about one of my favorite tools in Godot: the AnimationPlayer! My next game has TONS of character animations in it, and this tool has helped me stay organized and enabled some really cool results.

Hope you enjoy the video. Can't wait to see the animations you make!

DrewConley
Автор

Great job explaining why the hat is useful to put as a separate node. I couldn't find any other videos explaining this core mechanic of 2D games where you need to change gear or sprite textures.

NuclearDrone
Автор

Thank you for producing such a dense and useful tutorial. Real examples will always be best!

KnoxEmDown
Автор

Thank you, I'm just starting out as a hobby and this was perfect explanation of the basic animation effects for pixel sprites.

robertd
Автор

I'm definitely subscribing. I've been trying to get into godot coding but haven't found a good tutorial, and this is the first one I've found. Thank you so much, I hope you get more subscribers and that this isn't the only thing you do. I hope you work for a good game company or other and that you make enough money to sustain yourself. I'm saying this because I really hate to see small youtubers who put lots of effort into videos and don't have many subs.

aguynamedwyatt
Автор

Hey. I just wanted to say that I really appreciated how clear this video was. I appreciate your use of examples and also trickling in information only when necessary rather than throwing the kitchen sink right at the start. I appreciated the clear structure.

gopherwithagun
Автор

His walking animation looks like dancing.
Also great tutorial! Been looking for a reliable video on Godot animation, thank you sir!

dreamhollow
Автор

You're good at this tutorial thing, subscribed

DrRumsmuggler
Автор

I finally know how to add those animations I was searching 1 hour how to do this.you explain fast and good everything

isabellarozalinda
Автор

Fantastic, well done, thanks for the tutorial!

randompast
Автор

I finally found a channel that teaches me at a pace that works for me in a format that makes sense.

silvernode
Автор

Thanks for this Drew, it was really helpful.

MrSmith_
Автор

Thanks for the video, it certainly helped me. However, I just want to point out that it is unnecessary to create a key for every frame of the animation. Instead, you can change the "update mode" for the track to "continuous", create a key for the last frame of the animation and the first frame of the animation, and the AnimationPlayer will automatically step through every frame of the animation while only specifying a key for the first and last frame.

When "update mode" is continuous, the player automatically moves between the values of the keys. For a short animation like this one it may not matter that much, but for an animation that is 20+ frames it may save a huge amount of time.

I think it should be the default for a new AnimationPlayer track, since it often saves a lot of time. Instead, the default is "discrete", which means the property value simply changes to the value specified by the key whenever that key is reached in the duration of the animation track.

reactmagic
Автор

The loose hat was kinda cool also nice effect i liked it alot! Thanks for these videos!

Maltebyte
Автор

This is 10 times easier than Unity...just...wow. Thank you SO MUCH for this tutorial!

MCNeko
Автор

Perfect explanation
Easy to understand

ahmasa
Автор

so convenient for multiple outfit and accy games tysm!

phoenixastra
Автор

Very cool, thanks, keep it up. Subed.

FrancoisSchnell
Автор

Thanks i am making an RPG so this helps a lot

archiewise
Автор

Drew I want to mention I am not sure if this is something youtube implemented or an option you have as a creator but when you mentioned the word "subscribe" the button next to your name had a little animation pretty cool!

SinrMax