Skip to main content
Build epic boss encounters with custom 3D models, dynamic animations, phase transitions, and interactive mechanics.

Overview

This example demonstrates:
  • Multi-phase boss system with state transitions
  • Health-based animation changes
  • Custom hitbox interactions
  • Skill system with animations
  • Boss bar integration

Boss Entity Structure

Core Boss Class

Boss Manager

Managing Multiple Bosses

Best Practices

  • Use phase-based animations to keep boss fights dynamic
  • Implement cooldowns on hitbox interactions to prevent spam
  • Update boss bars regularly for real-time health feedback
  • Use TrackerUpdateAction.composite() for complex visual effects
  • Cache player references for performance
  • Always remove boss bars when boss is defeated
  • Close trackers properly to prevent memory leaks
  • Test phase transitions thoroughly
  • Limit the number of simultaneous skill animations

Next Steps

Custom Events

Learn more about hitbox events

Multi-part Entities

Create bosses with multiple body parts

Conditional Animations

Advanced animation state machines

Performance Optimization

Optimize boss performance