Things that interact have a collision shape.
In everything that can be damaged I define a take_damage method.
Everything that causes damage has a check like this when a collision happens:
if body.has_method("take_damage"):
body.take_damage(damage_done)
1 Like
You get hurt by your own hurtbox?
I would start with checking if the body
if body != self:
Add previous code below, indented
I guess s/he meant hurtzone,like a bluezone in PUBG.
1 Like