Skip to catalogue

93

hitbox and hurtbox

Where you deal damage, and where you take it. They are not the sprite’s rectangle.

What is hitbox and hurtbox?

A hitbox is the volume that offends. A hurtbox is the volume that receives. They differ in size and timing: a sword’s hitbox exists only on the active frames. The sprite is art, not the collision.

Why does hitbox and hurtbox matter when vibe coding?

Models collide the whole image. Jumps feel unfair and attacks feel random. Name the two boxes and the frames they exist on.

How do you do hitbox and hurtbox?

Author hurtboxes on the body. Author hitboxes on the attack, enabled only during active frames. Draw them in debug. Tune them, do not use the PNG bounds.

How do you ask a model for hitbox and hurtbox?

Separate hitbox and hurtbox from the sprite. Hurtbox on the body. Hitbox only during active attack frames. Add a debug draw. Do not collide using the image rectangle.

What goes wrong with hitbox and hurtbox?

One box for both, so you punch yourself. Layers: offense does not hit your own hurtbox unless that is the joke.

adjacent