Step 10.1: Hitbox & Hurtbox

Goal

  • Understand Hitbox & Hurtbox.

  • Understand how effects are transmitted through them.


Hitbox

There is a Hitbox Component on the sword move set. Typically, it is controlled by a State Modifier.

The Attack with Hitbox Mod is responsible for the hitbox's activation and effects to send on collision.

Hurtbox

You must have hurtbox component for P Entities to get hurt. It is responsible for receiving effects and allowing the receiver to have invincible frame.

Last updated