Making a Player Character with Animations, Movement, and Collisions ~ Godot 4 Tutorial

preview_player
Показать описание
Learn how to setup a player character with CharacterBody2d adding in animations, movement and collisions. Different than many characters, we also add in a equipment slot to the player so that the player can change out between many tools in this resource gathering game project.

➣ Downloadable Assets, Video Courses, and Other Places to Follow Me

00:00 - Creating a Player
02:16 - Swing Down Animation
05:27 - Animate Tool with Swing Motion
12:25 - Idle Down Animation
14:02 - Walk Down Animation
16:10 - Collision Shape for Player
17:18 - Player Movement
19:21 - Input Actions and 4 Directional Movement
Рекомендации по теме
Комментарии
Автор

Just wanna drop by and say that you're doing our community a big favor and you're an amazing person for that! Keep it up man I love your video as always!

ivanncomiso
Автор

I got trought part 1 and everything worked!😊

Shadowthevampire
Автор

looking thru many top down movement tuts this one actually works the way i wanted. thank you very much!

wildrynogames
Автор

I saw one of your old tutorial in this but i was totally missing how to correctly manage the different sprites.with this tutorial now i totally understood how it works!so really thanks you for the videos, and also for improving the quality!

cristiancaiazzo
Автор

Thanks for your tutorials! They are always top notch

aze
Автор

Just in case anyone is curious, you don't need to normalize the get_vector method. This method is normalized by default so that you don't get the faster diagonal directions.

DeadIndGames
Автор

Amazing content, brain food for the weekend! Thanks!

NachoKsp
Автор

Great video man, I love these series you are a rockstar!

hawkgamedev
Автор

Dude I spent the last few hours figuring out how to do the movement for yourself and tried different way, the fact that Godot 4 allows you to move all directions in like 1 line is insane. And normalize it too

Mindboggler
Автор

very nice tutorial bro thank you. liked it ofc!

AchuCSGO
Автор

Awesome video. I did have to change the speed to 0.75 lol

FishGup
Автор

Thank you for great tutorial as always, your videos are great asset to the Godot community! One little suggestion - as an animator I was surprised you didn't first move the tools so that their handle (rotation pivot) is in (0, 0) and THEN animate the translation and rotation...It wouldn't have been much easier to animate without the issue of wonky in-between movement.. Is there a reason for not doing that? Thanks so much for your tuts, love them so much!

vasarolnik
Автор

Fantastic video! I followed along, but used C#

KarlHavoc
Автор

very intersting tutorial, thank you :)

_Garm_
Автор

Did you use "forward/beyound?+, mobile or compatible" when setting up the game project?

Shadowthevampire
Автор

It would be great if you could show us an alternative to if we want our character to swing with both arms and not just 1 arm how do we make it appear so that the axe is in front of one arm but behind the other?

Shadowthevampire
Автор

Hi, a very newbie question: does the size of bounding box matter? I mean, will Godot detect the empty space and scale sprites correctly if needed?

haavaena
Автор

How do you fix animation so that your sprite doesn't have a seizure?

Elmo