Question by
AdiDidIt · Feb 23, 2019 at 12:11 PM ·
triggercollider2d
Player Dies when punching an enemie/traps
Im trying to create a punch for my player but the problem is that when he attacks an enemie he dies.
for example when my player punch spikes he dies because his punch hit the spikes (even that the player never touched it)
how can I fix it?
the player punch is the player child so I see no reason that it will activate OnTriggerEnter2D (but it does)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612192312im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to load panels in a platformer game? 0 Answers
colliders being pushed off center 0 Answers
Can't get health/damage to work 0 Answers