Uploaded November 2022 | Updated September 2026, 2 weeks ago
Setting up attack triggers with a detection zone and adding many animations states to our knight enemy.
Reference Project Patreon Download ➣ patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
chris-tutorials.itch.io
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:34 - Knight Animations Run, Attack, Hit, Death
05:00 - Knight Animator State Machine Setup
07:02 - Attack Condition
08:46 - Detection Zone
10:57 - Detection Zone Script
15:20 - Testing Attack
16:17 - Slower Knight Attack
17:34 - CanMove False on Attack
20:14 - Stop Move over time with Lerp function
22:18 - Wrapup
Setting up attack triggers with a detection zone and adding many animations states to our knight enemy.
Reference Project Patreon Download ➣ patreon.com/posts/2d-platformer-73894085
2D Crash Course Platformer Tutorial Playlist ➣ youtube.com/playlist?list=PLyH-qXFkNSxmDU8ddeslEAtnXIDRLPd_V
Play the Project in Web Browser ➣ chris-tutorials.itch.io/platformer-crash-course-reference-project
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
chris-tutorials.itch.io
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:34 - Knight Animations Run, Attack, Hit, Death
05:00 - Knight Animator State Machine Setup
07:02 - Attack Condition
08:46 - Detection Zone
10:57 - Detection Zone Script
15:20 - Testing Attack
16:17 - Slower Knight Attack
17:34 - CanMove False on Attack
20:14 - Stop Move over time with Lerp function
22:18 - Wrapup









![Damageable Enemies, Hitboxes, & Hurtboxes - 1 Bit Platformer [Part 5] - Godot 4.3 Series
Make an enemy that can be hit by projectiles by using hitboxes and hurtboxes to change the current health value on the enemy.
Project Downloads ~ Snapshot at Each Videos End
Ko-fi ➣ https://ko-fi.com/post/Project-1-Bit-Projectile-Platformer-Tutorial-Ser-U7U510EBNX
Patreon ➣ https://www.patreon.com/posts/107952055
Itch.io ➣ https://chris-tutorials.itch.io/1-bit-platformer-tutorial-project
Assets & Credits ➣ https://pastebin.com/qa4NiTyu
Grid Building Plugin ➣ https://linktr.ee/gridbuilder
World Time Plugin ➣ https://linktr.ee/worldtimeplugin
Item Drops Plugin ➣ https://linktr.ee/itemdrops
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
https://ko-fi.com/christutorials
https://patreon.com/christutorials
https://chris-tutorials.itch.io/
➣ Support Channel with Crypto Donations
https://pastebin.com/WAnBPcXs
00:00 - What to Expect
01:02 - Projectile Collision Mask
03:41 - Projectile Gravity Scale
04:18 - Create an Attackable Enemy
07:06 - Making a Hurtbox Area2D
10:02 - Hurtbox and Stats Scripts
18:18 - Hitbox2D Script
20:51 - Add Weapon Stats to Hitbox
22:41 - Sharing Weapon Stats
26:10 - Testing Hit Enemies with Projectiles
29:04 - Wrapup Damageable Enemies, Hitboxes, & Hurtboxes - 1 Bit Platformer [Part 5] - Godot 4.3 Series](https://i.ytimg.com/vi/mezwctNM4gk/mqdefault.jpg)
