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

  Рет қаралды 97,496

Drew Conley

Drew Conley

Күн бұрын

Пікірлер: 78
@DrewConley
@DrewConley 4 жыл бұрын
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!
@ronolds6505
@ronolds6505 Жыл бұрын
Thanks for excellent tutorial! Was wondering if it is possible to copy Godot "code" and insert it into HTML, CSS, and/or JS on my website. ??
@NuclearDrone
@NuclearDrone 3 жыл бұрын
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.
@reactmagic2348
@reactmagic2348 3 жыл бұрын
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.
@Chillerll
@Chillerll Жыл бұрын
Thanks for clarifying this. This is one of my first Godot videos and I was so close to give up on the engine because this workflow would have taken way too much time to me.
@WatsonDynamite
@WatsonDynamite 10 ай бұрын
this doesn't seem to work anymore
@robertd7275
@robertd7275 2 жыл бұрын
Thank you, I'm just starting out as a hobby and this was perfect explanation of the basic animation effects for pixel sprites.
@evmcha
@evmcha 3 жыл бұрын
Thank you for the great vid! I have a question about sprite properties. I'm making a creature breeding kind of game like Pocket Frogs and I want to create sprites that each have three properties, 2 being colors and one for the pattern. Is there a way to somehow create a single sprite sheet and then be able to somehow edit it for individual creatures or will I need to make a new sprite sheet for each combination?
@DrewConley
@DrewConley 3 жыл бұрын
Sounds cool! You might consider layering them? Maybe having the pattern itself be it’s own sprite. The color part may be swappable with Shaders. Best of luck!
@evmcha
@evmcha 3 жыл бұрын
@@DrewConley Thank you!!
@aguynamedwyatt
@aguynamedwyatt 2 жыл бұрын
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.
@KnoxEmDown
@KnoxEmDown 3 жыл бұрын
Thank you for producing such a dense and useful tutorial. Real examples will always be best!
@DrRumsmuggler
@DrRumsmuggler 3 жыл бұрын
You're good at this tutorial thing, subscribed
@HalfAsleepSam
@HalfAsleepSam 2 жыл бұрын
I hate Animation Player, it makes my brain go eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerrrrrrrr
@MCNeko6554
@MCNeko6554 2 жыл бұрын
This is 10 times easier than Unity...just...wow. Thank you SO MUCH for this tutorial!
@randompast
@randompast 2 жыл бұрын
Fantastic, well done, thanks for the tutorial!
@iRaionSama
@iRaionSama 4 жыл бұрын
Oh no, no beard? lol. In all seriousness let me tell you that your channel is so underrated, amazing content, easy to follow and grasp the concept you're speaking of. Just keep'em coming for us that are following and let's hope that in the near future you'll get the recognition you disearve :D
@DrewConley
@DrewConley 4 жыл бұрын
Thanks a ton for the nice comment. I really appreciate it because these things take forever to put together :D And haha - I wasn't sure if anybody would comment on the beard! I'll let it grow out way longer next time and see how it goes.
@cynikoSC
@cynikoSC 4 жыл бұрын
+1 - stumbled on this content randomly and think it's really great - nice work
@DrewConley
@DrewConley 4 жыл бұрын
hey, thanks so much! I really appreciate it
@synthoelectro
@synthoelectro 2 жыл бұрын
at first I was thinking 'well you could always add a beard to the char' then I realized the punchline.
@FrancoisSchnell
@FrancoisSchnell 4 жыл бұрын
Very cool, thanks, keep it up. Subed.
@dreamhollow
@dreamhollow 3 жыл бұрын
His walking animation looks like dancing. Also great tutorial! Been looking for a reliable video on Godot animation, thank you sir!
@isabellarozalinda6434
@isabellarozalinda6434 2 жыл бұрын
I finally know how to add those animations I was searching 1 hour how to do this.you explain fast and good everything
@izichgt6803
@izichgt6803 3 жыл бұрын
Can u give me the every picture its hard to crop in phone i just have phone
@lexolotlgod
@lexolotlgod 2 ай бұрын
I have been running into issue after issue trying to make animated sprite 2d work... Think I'm throwing in the towel on that, lol.
@amarion
@amarion 3 жыл бұрын
hey i have a question! this video was great but why do we create a new scene for the character? Is it for abstraction purposes or did you just do it for this one tutorial? Also, how would we use the character scene in another scene? Thanks!!
@DrewConley
@DrewConley 3 жыл бұрын
Breaking out individual pieces, like the character here, can make large projects much easier to manage and edit. It’s your call on when to move something into its own scene. I try to keep my scenes pretty small with isolated responsibility. Look up ‘Instancing Scenes’ for using existing scenes within other scenes. Thanks for the comment!
@amarion
@amarion 3 жыл бұрын
@@DrewConley thank you so much! i feel like i understand godot so much more than i already did before. youre amazing!
@tonypatino1765
@tonypatino1765 4 жыл бұрын
I'm interested in game dev, i'm currentlyonly on episode 2 though
@DrewConley
@DrewConley 4 жыл бұрын
Keep it up! I'm excited to see what you make!
@SinrMax
@SinrMax 8 ай бұрын
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!
@hehz7829
@hehz7829 2 жыл бұрын
My sprite is moving its coordinates when the frame switches for some reason
@archiewise6634
@archiewise6634 4 жыл бұрын
Thanks i am making an RPG so this helps a lot
@nyn2k259
@nyn2k259 Жыл бұрын
Nice video, do you have any tutorials on card build deck games with rpg elements? Thanks.
@cheeseam48
@cheeseam48 3 жыл бұрын
hey! do you know how to like animation start in scene? cuz idk how to code...
@gopherwithagun604
@gopherwithagun604 4 ай бұрын
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.
@Maltebyte2
@Maltebyte2 Жыл бұрын
The loose hat was kinda cool also nice effect i liked it alot! Thanks for these videos!
@silvernode
@silvernode Жыл бұрын
I finally found a channel that teaches me at a pace that works for me in a format that makes sense.
@doublepixels7420
@doublepixels7420 2 жыл бұрын
I think I don't get...is there another way to use the animation player
@ahmedbahaa9418
@ahmedbahaa9418 2 жыл бұрын
i don't unserstand what is hapening
@w_hoami4130
@w_hoami4130 2 жыл бұрын
I can't figure out how to add the png to the project though-
@ahmasa21
@ahmasa21 2 жыл бұрын
Perfect explanation Easy to understand
@CalGaming152
@CalGaming152 Жыл бұрын
how do I fix my sprite from moving everywhere when it plays? each key frame moves the sprite left or right btw idk if it makes a difference but there is 9 pixels between each frame
@DrewConley
@DrewConley Жыл бұрын
Maybe an alignment issue within the actual sprite sheet image? If it’s a pixel by pixel jump, prob not a configuration problem on the Godot side
@CalGaming152
@CalGaming152 Жыл бұрын
@@DrewConley thx I got to work with very minimal moving to the point where it actually looks good with the animation by moving the sprites
@phoenixastra4429
@phoenixastra4429 3 жыл бұрын
so convenient for multiple outfit and accy games tysm!
@conta7619
@conta7619 4 ай бұрын
Thank you very much ❤❤❤❤
@MrSmith_
@MrSmith_ 3 жыл бұрын
Thanks for this Drew, it was really helpful.
@tyya3365
@tyya3365 3 жыл бұрын
how to make animation move when i click button
@cheeseam48
@cheeseam48 3 жыл бұрын
hey! do you know how to like animation start in scene? cuz idk how to code...
@thefrenchaxolotl6854
@thefrenchaxolotl6854 2 жыл бұрын
then you should not make a video game or learn a tutorial on how to code
@Darkyahweh
@Darkyahweh 2 жыл бұрын
Where is part 2?
@Peter-vx5yf
@Peter-vx5yf 3 жыл бұрын
There a way to make this by code?
@AvSias
@AvSias 2 жыл бұрын
Thanks, helped a lot. :)
@jake_mouse
@jake_mouse 3 жыл бұрын
Awesome video, thank you!
@turbotegs2102
@turbotegs2102 3 жыл бұрын
So if you have multiple sprite sheets you just create multiple sprite nodes 1 for each of them right?
@DrewConley
@DrewConley 3 жыл бұрын
Yep, that’s a good approach. It is also possible to swap out the texture of a Sprite node on the fly. This works well for frames that all use the same animation patterns, like changing character skins, but totally new frame behavior is prob best for another Sprite node.
@turbotegs2102
@turbotegs2102 3 жыл бұрын
@@DrewConley oh, I had my animations separated, walk animation is 1 sprite sheet, jump animation is another and so on... should I try and stuff them all into 1 sprite node i guess?
@halexp
@halexp 3 жыл бұрын
this is AWESOME! ty!!!
@eboatwright_
@eboatwright_ 3 жыл бұрын
Thanks for this! :D
@jacobp9470
@jacobp9470 3 жыл бұрын
really helpful. thanks!
@seamuskills
@seamuskills 2 жыл бұрын
What do I do if all the frames are individual images rather than a sheet?
@DrewConley
@DrewConley 2 жыл бұрын
Can you combine them to a sprite sheet?
@klaatubarada6200
@klaatubarada6200 2 жыл бұрын
You can use AnimatedSprite instead of AnimationPlayer.
@Bloom_HD
@Bloom_HD Жыл бұрын
I have the same issue. Except I have different sprite sheets for different animations. If you figured out how to deal with that please let me know :)
@amiasakawa5353
@amiasakawa5353 3 жыл бұрын
thank youu
@RyanScottForReal
@RyanScottForReal 3 жыл бұрын
Great stuff!
@DragonKing987
@DragonKing987 Жыл бұрын
Nothing working in Godot 4 as described in this tutorial, first off where is kinetic body 2d in the node menu? It doesn't exist, the function described is not there. This tutorial video is useless for beginners when important functions are missing!
@poulinhp
@poulinhp 8 ай бұрын
It's usually not missing it's just called something else, you have to experiment
@hilalstein4236
@hilalstein4236 8 ай бұрын
Mf this is a 3 years old tutorial
@poulinhp
@poulinhp 8 ай бұрын
Did I help
@hilalstein4236
@hilalstein4236 8 ай бұрын
@@poulinhp yes you did sir, My comment was towards the guy who first commented
@Tehgon
@Tehgon 7 ай бұрын
ignore the snarky twat its CharacterBody2D that you were looking for (and anyone else who may come here lookin)
I Switched to Bone Animations (here's how it went)
5:56
supertommy
Рет қаралды 88 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 44 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2 МЛН
Godot Recipes: Animation States
10:31
KidsCanCode
Рет қаралды 106 М.
Save Countless Lines of Code With Animations in Godot
3:20
Finite State Machines in Godot 4 in Under 10 Minutes
7:16
Bitlytic
Рет қаралды 288 М.
How Games Make VFX (Demonstrated in Godot 4)
5:46
PlayWithFurcifer
Рет қаралды 347 М.
This Godot 4 Scene Manager Does it ALL
28:50
Bacon and Games
Рет қаралды 27 М.
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 373 М.
Building a Game about being a Bad Referee! GMTK 2023
3:20
Drew Conley
Рет қаралды 11 М.
10 Minute Pixel Sprite TUTORIAL for COMPLETE BEGINNERS
10:18
Eli Cuaycong
Рет қаралды 275 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17