Should the attacker or the attackee emit the hit/hurt signal?

Godot Version

4.2.2

Question

Is it best practice to have the hitbox owner emit a signal that it entered the victim’s hurtbox, or should the hurtbox owner emit a signal that it entered the attacker’s hitbox? One of those really basic things that I’m still unclear on.

I’d say the attacker/damage source should do it, but I can’t explain why. I just think it is easier to manage if you have different damage sources, but I’d like to hear other oppinions or explanations.

1 Like

Usually because the "do damage’ function is started by a player action and often plays an animation.

But…it depends, especially on the type of game. :laughing: