Collision damage of two enemies

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By HorseGorilla

I want to throw an enemy and inflict damage to other enemies.
I even did it by assigning area.owner to the mob variable and throwing it,
We were blocked from doing damage to each other. After all, is the only thing to do damage by changing the physics layer with the mob variable? two enemies all kinematic2D,

Thank you.

Do the enemies have Area2Ds to detect other enemies?

exuin | 2021-05-18 05:13

No, but enemies have an Area2D called DetectPlayer. Do I need an Area2D to detect enemies?

HorseGorilla | 2021-05-20 03:41

Oh! I know how to do it. It’s not complete, but I’ve got a clue. Thank you!

HorseGorilla | 2021-05-20 05:58