dealing damage melee multiplayer 2 playercharacters
I'm making a 1 vs 1 swordfighting game and have been tackling with several issues. Recently I've been having an issue with getting my katana/sword to deal damage only to the other player. I suspect it has something to do with how i'm spawning the katana/sword to the actors or how i'm enabling/disabling the colliders on it.
Basicly what happens is when i hit the other player from far, that player loses health correctly, but if i get too close the enemies sword and attack, they both take damage. Should I be using some sort of tagging system to determine which character ignores the damage? And if so how would i go about doing it.
Thanks in advance Samuel Brooke
max hp = 2.0
pictures: hit from far http://imgur.com/a/uaVgB
hit from close http://imgur.com/a/3JwpH
can you show the code where you actually do the hit detection - does the "hit" require the player be swinging the weapon? you can also maybe check to see if the weapon is hitting its holding player
perhaps check out ramas weapon plugin, might be worth using, or pulling apart to learn from - https://www.youtube.com/watch?v=aufEB4TCf30
answered Feb 09 '17 at 11:04 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here