Get enemy number to show on widget with different numbers every round

I am now to unreal engine or really almost any game development. I have went through tutorials to set up a game and am now trying to change things to make it more like what im looking for. I have the hud widget with “enemies” text and im trying to get the number to show and decrese on the screen so when final enemy is killed it will bring up a “winner” screen to select the next level. But i can get the enemy count to show on the widget and im not entirely sure what to do.

Hud widget

Game blueprint

Deng, you should use screenshots instead of the camera. We hardly see anything.
Anyway, did you add the widget to the viewport? This might be the case.

hey sorry it was my first time posting here is a screenshot if it helps any this is the only thing i have left and idk why i can not get it to work!

Can you add the print string node after the add to viewport node? We want to see if it executes or not.

yes it and when i compile it still reads just fine but my enemy count wont display and my “winner” screen wont pop up rather kill all enemies or die. thank you for the help!

I see you have variables for multi-player am I right? Can you plug in the owning player to be “get player controller” (if not mistaken)? At this point, we need to try and error as I can’t get my hands on that, so I have no other way other than just guessing the problem. It could be anything too.

No its not ment to be a multiplayer game just single player with a different set amount enemies in each level. If i plug get player controller instead of player character it wont compile.

The enemies textbis on the screen but the number of enemies wont show up so sense it cant read to tell me when all enemies are dead it wont pop up the winner screen.

Then there’s no reason to use “PlayerAlive” variable if it’s not multiplayer.
The setup should be very simple. Here’s my setup for you.

PS: Correction output pins for the branch after the loop should be swapped. False to true and True to False. I mislook this. The boolean variable name should be changed from “All Enemy died?” to “All Enemy Alive?”

Alright i ttied it yesterday and still wasnt gettimg the display on “enemies” in the hud but ill try the swap and see if that works! Thank you again for the help!

The text won’t pop up because of many things. First, the enemy class does not exist. Second, the logic setup is wrong. Third, the default value does not exist. Fourth, wrong conversions. And… many more reasons. But, for the start, you can quickly check these tips first to see how it goes.

That all sounds about right lol ill redo everything and see what i can come up with but thank you for pointing me in the right direction!