Загрузка...

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: https://www.youtube.com/playlist?list=PLZ-54sd-DMALABr_k6VpMnut_11q2oJmv

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-Center/GDC_RPG_Essentials_Starter-Kit
Asset Pack from PixelFrog on Itch.io (this series uses a small set of the free pack): https://pixelfrog-assets.itch.io/tiny-swords

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: https://youtu.be/7fkgGNaiXsc
⬧⬧⬧ GDC Club ⬧⬧⬧
Godot is open-source. Tutorials should be free!
Support the work by becoming a member, get perks in return.
MEMBERS ►►https://www.youtube.com/c/gamedevelopmentcenter/join
PATREON ►►https://www.patreon.com/gamedevelopmentcenter
⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧
DISCORD ►► https://discord.gg/DwcFXyS
GITHUB ►► https://github.com/Game-Development-Center
⬧⬧⬧ 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-swords
⬧⬧⬧ 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.

Видео Combat Systems – Create a 2D RPG in Godot 4 канала Game Development Center
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять