How do you add a win screen?

Hey, I’m new to unreal and I’m wondering how to make a win screen show up after I kill a certain amount of enemies or when every enemy is dead, Can someone please help me with this?

If there are a fix amount of ennemies on the map (that is not random spawn as the game progress), one way of doing it is creating a variable counter for dead ennemy in your game state bp. (Integer DeadEnemy )
Example: if DeadEnemy = 20 , Create Widget(pass the variable) and show on viewport

In your parent ennemy bp, OnDestroy > cast to your game state bp > DeadEnemy++

1 Like

I got this to work kind of but it shows this all the time, I want it to show up when I get a certain amount of kills instead of showing true or false .
Annotation 2024-06-20 230158

  • Make a game mode and game state bp.

  • Set them from the world setting:

  • Add a custom event to check the condition for amount of enemy killed:

  • From your BP_Enemy>OnDestroyed, you can cast to the game state to EnemyKilled++ for the counter and called the event EndGame for the condition.

Okay, Thank you!

1 Like