Hit Detection and Damage Handling Godot 2d Tutorial | The Combat Series #2 @GameDevelopmentCenter
Hit Detection and Damage Handling Godot 2d Tutorial | The Combat Series #2  @GameDevelopmentCenter
Uploaded October 2019 | Updated November 2026, 2 hours ago
In this Godot 2d tutorial, we have a closer look at hit detection and damage handling in Godot 3.1.

0:00 intro
0:53 Hit Detection
4:29 Set Hitpoints
5:55 Best Practises for Function Placement
6:56 Set Damage and Call Damage Function
8:31 Damage Calculation & Death Check
10:21 Stop Body From Interfering With Game World
11:38 Episode #3 Announcement

In the last episode, we coded our projectile to disappear when it hit something. In this Godot 2d tutorial, we make sure the hit detection can differentiate between hitting an obstacle (wall, barrels) or an enemy. We give the projectile damage and we give our faithful skeleton George some hitpoints and implement the damage handling. We define the OnHit and OnDeath functions and in the end, we kill George and remove his body from the physical game world. Reducing him to the pile of bones he started as.

⬧⬧⬧⬧⬧ GDC TUTORIALS ⬧⬧⬧⬧⬧
I believe educational material should be available to all, for free
Support this vision by joining the GDC-Club and get perks in return
youtube.com/c/gamedevelopmentcenter/join
patreon.com/gamedevelopmentcenter

⬧⬧⬧⬧⬧ LEARN MORE GAMEDEV ⬧⬧⬧⬧⬧
These books have helped me in my game design and programming, I whole fully recommend them to you!
Level Up! The Guide to Great Video Game Design ►► amzn.to/3hIg6dE
Game Programming Patterns ►► amzn.to/35IoDsH
The Art of Game Design: A Book of Lenses ►► amzn.to/35MSHoU

⬧⬧⬧⬧⬧ LIVESTREAMS ⬧⬧⬧⬧⬧
I Livestream game development twice a week right here on YouTube.
Subscribe and hit that Bell Icon to make sure you don't miss it!
youtube.com/c/GameDevelopmentCenter?sub_confirmation=1

Tuesday and Thursday
1900 to 2200 (GMT+1/2 (winter/summertime), that's;
1200 to 1500 (PST), or
1500 to 1800 (EST).

⬧⬧⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧⬧⬧
Join the community! Follow me on Social!
DISCORD ►► discord.gg/DwcFXyS
TWITTER ►► twitter.com/GamedevStefan

⬧⬧⬧⬧⬧ 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. I aim for multi-part Godot tutorials, allowing me to dive deeper into Godot's features.

⬧⬧⬧⬧⬧ ASSETS USED ⬧⬧⬧⬧⬧
https://www.kenney.nl/assets/isometric-dungeon-tiles
opengameart.org/content/flare-skeleton-mod-skeletal-occultist
opengameart.org/content/flare-skeleton-mod-skeletal-knight
opengameart.org/content/icicle-spell

⬧⬧⬧⬧⬧ 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.
Hit Detection and Damage Handling Godot 2d Tutorial | The Combat Series #2How to Shoot in Godot 2d Tutorial | The Combat Series #1Godot Tutorial Physics, Collisions and Detections | Godot Inventory System Part 4Smart Isometric Maps Using YSort | Godot Tutorial 3.2Godot Multiplayer Server-Client Tutorial | Godot Dedicated Server #1Godot UI | Create Amazing Looking Health Bar (Globe)Grid Based Inventory System | Godot Inventory TutorialMake a Tower Defense Game in Godot | Part 11 - Info Bar, Health, Money, TweensEquipping and Character Sheet | Godot TutorialHow to Create a Skill Tree System in Godot 3.2 (Part 1 of 2, UI) | Player Development SeriesHow to Create a Stat System in Godot 3.2 | Player Development SeriesHow to Make an Experience Bar in Godot 3.2
Game Development Center |

Hit Detection and Damage Handling Godot 2d Tutorial | The Combat Series #2

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER