Help with my "fighting game" UI


Hello everyone! Im doing a fighting game in unreal engine 5.4, using blueprints. Basically im having issues with the assignment of each players HP on the “fighting” gameplay part.

The players are an instance of a single Character BP, and in the “fighting” widget, theres 2 instances of the same widget.

In the Graph im assigning each health bar to each player by filtering with their controller ID, but for some reason, when the player 1 hits player 2, player 1 takes the damage but when player 2 hits player 1, player 1 takes damage.

I have been looking at my graph a lot, trying to fix it but i cant. i tried to swap the player 1 and player 2 widget and the equal, but i kept getting more problems with it.

Can somebody help me please??

Are the variables associated with this “instance editable”


The variables of the player’s blueprint are connected to the “fighting UI” and the variables go to the intances of the child widgets.

I see that, but if your using instances of the same class for both players, you’ll want their health variable to be instance editable, otherwise if one player takes damage it will reflect on both