How to make an ARPG in godot 4 #12: Player-enemy collision | tutorial | zeldalike

Опубликовано: 28 Май 2026
на канале: MakerTech
31,754
805

Hi and welcome to this tutorial series, where I will show you how to make a 2D ARPG in Godot 4.

Support the channel on Patreon:   / makertech  
Support the channel with a Youtube membership:    / @makertech  
Join the Discord server:   / discord  
   • How to Make an Action RPG in Godot Season 1   - How to Make an ARPG in Godot 4 playlist

I'm currently making this tutorial in Godot 4.0.1. But I will try to update any changes that might occur, if or when new releases come out while I'm working on this series.

In this 12th episode we will take a first look at how to handle player-enemy collisions.
We will look at how register collisions between two CharacterBody2Ds and between two Area2Ds.

Please remember that this is in no way the only way to create an action RPG in Godot. In most cases there will be several ways to implement a new feature.

This is how I would do it.

But I will also try to reflect on the choices made during this series. Why we make them, and what alternatives we could have explored further.

00:00 intro
00:28 body-body collision
03:57 layer and mask
04:58 hurt box and hit box
06:34 hit box animation
11:51 fixing move animation
12:31 hurt-hit box collisions
13:47 outro

---------------------------------------------------------------------------------------------------------------------------
Download Godot 4: https://downloads.tuxfamily.org/godot...
"Ninja Adventure" asset pack: https://pixel-boy.itch.io/ninja-adven...
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
Reddit:   / makertech  
Instagram:   / makertech_dk  
Twitter:   / makertech_dk  
Youtube channel:    / makertech  
---------------------------------------------------------------------------------------------------------------------------

#gamedev #godot #godotengine #godot4 #tutorial #zeldalike #learntocode #howtomakeagame