Войти
  • 387Просмотров
  • 1 неделя назадОпубликованоPixies Game Dev

Godot Essentials – 2D Player Movement (4 & 8 Directions) / Animations for walking and attacking

In this episode of Godot Essentials for 2D Games we create a fully controllable 2D player character from scratch. We’ll set up a dedicated Player scene using CharacterBody2D, add sprites and animations for walking, running and attacking, and write a simple movement script that reads input, sets the velocity and handles 4- and 8-directional movement. Of course, we’ll also add a CollisionShape2D so our player interacts properly with the world. What you’ll learn in this video: 🔹 Creating a Player scene with CharacterBody2D 🔹 Setting up AnimatedSprite2D for walk, run and attack 🔹 Writing a basic movement script (input → velocity) 🔹 4-direction and 8-direction movement in 2D 🔹 Adding CollisionShape2D for solid interactions If this video was helpful, please leave a like and subscribe to the channel. It really helps me a lot and supports this series – thanks for watching, and have fun coding! 🎮 00:00 Intro / In this episode 00:36 Creating the character 03:33 4-directional movement 08:15 8-directional movement 10:37 Player walking animation 15:05 Player attacking animation 18:22 Set animation speed 22:09 Create your own RPG 22:23 What's next... More Godot learning: 👉 Game Endeavor on YouTube – amazing pixel art and Godot tutorials that inspired many parts of my workflow: @GameEndeavor 👉 Godot RPG Tutorial Series (Playlist) – in-depth series where we build up a 2D RPG step by step, from basic movement to combat and story elements: ⌨️ Engine & version Godot 4.4 #godot #godot4 #2Dgames #gamedev #tutorial #playermovement