Mikey of Legend

Week 6: Health Systems and Enemy AI (Part 2)

Learning objectives: Refactor to reusable health and introduce a second enemy AI style.

Estimated time: 8-10 hours

Signed in as loading...

Checking purchase access...

Introduction

This week is split into short video parts so you focus on one concept at a time, complete the matching build task, and verify results before moving to the next part.

Lesson breakdown

  • Lesson 1: Reusable Health Component - Create reusable Health component scene
  • Lesson 2: Damage Feedback and Respawn Flow - Add i-frames, knockback, and feedback
  • Lesson 3: Second Enemy AI Pattern - Build second enemy with detection/chase/attack logic
  • Lesson 4: Integration and testing pass for this week scope.
  • Lesson 5: Final polish and handoff notes for next week.

Try this now

  • Complete one focused implementation pass before watching the next segment.
  • Capture a before and after snapshot for the system you changed.
  • Write one short note on what to tune in your next iteration.

How this week works

This week is split into short video parts so you focus on one concept at a time, complete the matching build task, and verify results before moving to the next part.

Video segment plan

Use one lesson segment per step for Week 6: Health Systems and Enemy AI (Part 2). Pause between segments and complete the hands-on task before continuing.

Image and diagram references

Capture setup screenshots, inspector states, and scene graphs as you work so each step has a visual checklist to validate progress.

Interactive lesson parts (6-10 min each)

Part 1: Reusable Health Component

Watch Build Check
7 min Part video
Video part 1: Reusable Health Component

Embed a short clip for this step and keep it under 10 minutes before moving to the build task.

Create reusable Health component scene

Part 2: Damage Feedback and Respawn Flow

Watch Build Check
8 min Part video
Video part 2: Damage Feedback and Respawn Flow

Embed a short clip for this step and keep it under 10 minutes before moving to the build task.

Add i-frames, knockback, and feedback

Part 3: Second Enemy AI Pattern

Watch Build Check
9 min Part video
Video part 3: Second Enemy AI Pattern

Embed a short clip for this step and keep it under 10 minutes before moving to the build task.

Build second enemy with detection/chase/attack logic

Code checkpoint

Add or adapt this snippet during your build pass, then run and verify behavior before moving to the next week.

Practice snippet GDScript
# Step checkpoint for Week 6: Health Systems and Enemy AI (Part 2)
func _ready() -> void:
    print("Checkpoint complete for this week")