• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows Hitbox activates on wrong object?

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)
 

Attachments

Top