Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Enemy AI | Ep. 04 | Damaged State
Play lesson

Metroidvania Tutorial Series - Enemy AI | Ep. 04 | Damaged State

5.0 (3)
46 learners

What you'll learn

This course includes

  • 10 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this episode of our Enemy AI mini-series, we tackle one of the most important pieces of combat feel: what happens when an enemy takes damage. We introduce a dedicated Damaged State that reacts instantly to hits with knockback, hit animations, and a flashing red damage effect — turning our enemies from static targets into responsive, readable combatants. Just as importantly, we design this system with future expansion in mind. The architecture we set up here makes it easy to add a Death State and reuse the same damage logic for the player character, which we’ll tackle in the next video. Building on the modular state machine from earlier episodes, this chapter focuses on clean separation of concerns: damage handling, visual feedback, and state transitions all live where they belong, keeping the system scalable and easy to reason about. In this video, we: - Add a Damaged State to the enemy state machine - Implement knockback that reacts to hit direction - Trigger damage animations and a flashing red hit effect - Hook damage responses cleanly into the existing architecture - Prepare the system for an easy Death State addition - Set up reusable damage logic that will later be applied to the player By the end of this episode, our enemies don’t just lose health — they react, giving players clear feedback and making combat feel grounded and responsive. This foundation ensures that adding deaths, player damage, and more advanced combat behaviors later will be smooth and intentional, without refactoring core systems. 👀 Coming Up ☠️ Enemy death states and cleanup 🧍 Applying the same damage system to the player ⚔️ Advanced hit reactions and combat polish 🎟️ Early Access Early access episodes are available for YouTube Members and Patreon supporters. 👉 patreon.com/NightRunStudio 🔗 Assets Used in PROJECT (Free for Commercial Use!) → Mattz Art’s Kobold Warrior Pack https://xzany.itch.io/kobold-warrior-2d-pixel-art → Minimal Fantasy GUI by Eta https://etahoshi.itch.io/minimal-fantasy-gui-by-eta → Unique Free Spell Icons by Marvyra https://marvyra.itch.io/unique-free-spell-icons/devlog/859741/my-free-8-bit-spells-is-now-available → Frostwindz Priest Animations https://frostwindz.itch.io/pixel-art-vfx-priest → Frostwindz Lightning Animations https://frostwindz.itch.io/pixel-art-skill-animations-lightning → Otsoga’s Training Dummy https://otsoga.itch.io/training-dummy → Brullov’s Generic Character v.0.2 https://brullov.itch.io/generic-char-asset → Brullov’s Castle of Despair https://brullov.itch.io/2d-platformer-asset-pack-castle-of-despair → Szadi’s Pixel Fantasy Caves https://szadiart.itch.io/pixel-fantasy-caves

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere