Combat Systems – Create a 2D RPG in Godot 4

Build a combat system in Godot 4, covering hit detection, enemy attacks, and advanced enemy navigation. In this video, we start by creating an enemy character and defining how combat interactions work using hitboxes and hurtboxes. From there, we connect combat logic through signals, and handle enemy death with a clean death animation effect. Once the basics are in place, we expand the system so enemies can attack back, and finally, we introduce enemy navigation, using NavigationAgent2D to make enemies actively pursue the player within a navigation region. RPG Essentials Playlist:    • Create a 2D RPG in Godot 4   00:00 Intro 00:20 Creating an Enemy 02:18 HitBoxes & HurtBoxes 08:06 Animating the HitBox 11:17 Attack Signal & Code 13:52 Creating the Death Animation 19:19 Setup Attack Animations 22:30 Enemies Attacking Back 34:14 OOP - Object Oriented Programming 37:43 Setting Up Enemy Navigation 44:14 Creating the Navigation Region 52:41 Outro GitHub Starter Kit (contains starter kit, font, folder structure, nav_painter): https://github.com/Game-Development-C... Asset Pack from PixelFrog on Itch.io (this series uses a small set of the free pack): https://pixelfrog-assets.itch.io/tiny... Despite my attempts, I have not been able to arrange a license to redistribute the assets on GitHub. As a result you will have to download the starter kit and asset pack separately. When I'm able to arrange this with PixelFrog in the future, I will update the starter-kit and this description accordingly. Part 4 of RPG Essentials:    • Experience (XP) & Leveling System — Create...   ⬧⬧⬧ GDC Club ⬧⬧⬧ Godot is open-source. Tutorials should be free! Support the work by becoming a member, get perks in return. MEMBERS ►►   / gamedevelopmentcenter   PATREON ►►  / gamedevelopmentcenter   ⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧ DISCORD ►►   / discord   GITHUB ►► https://github.com/Game-Development-C... ⬧⬧⬧ ABOUT GDC ⬧⬧⬧ GDC, Game Development Center, was created to provide in-depth tutorials on game design theory and game development using the Godot Game Engine. We aim for multi-part Godot tutorials, allowing us to dive deeper into Godot's features. ⬧⬧⬧ ASSETS USED ⬧⬧⬧ https://pixelfrog-assets.itch.io/tiny... ⬧⬧⬧ DISCLAIMER ⬧⬧⬧ Some of these links go to one of my websites and some are affiliate links where I'll earn a small commission if you make a purchase at no additional cost or disadvantage to you. You will receive the same price and service.