B
Bryn
Guest
Hi! First post here, sorry if it's in the wrong section.
I'm currently making a 2 player fighting game, but I'm having trouble with my hitboxes. When I attack with player 1, a hitbox appears in front of player 1, which is good. However, when I attack with player 2, the hitbox appears in front of player 1 instead of player 2 and I don't know why. Also, if I spam the attack button really fast on either, a hitbox will eventually appear in front of both player objects.
Any help would be appreciated.
(Also, I'm still fairly new to this, so my coding might not be the most efficient)
I'm currently making a 2 player fighting game, but I'm having trouble with my hitboxes. When I attack with player 1, a hitbox appears in front of player 1, which is good. However, when I attack with player 2, the hitbox appears in front of player 1 instead of player 2 and I don't know why. Also, if I spam the attack button really fast on either, a hitbox will eventually appear in front of both player objects.
Any help would be appreciated.
(Also, I'm still fairly new to this, so my coding might not be the most efficient)
Attachments
-
86 KB Views: 7
-
85.7 KB Views: 3