Setting up a lose screen
The lose screen will be presented when the player runs out of health. We will present them with options to restart the last round or quit the game. You may remember the win screen we created; we presented similar options there. Rather than remaking the UI screen from scratch, we can save some time by using our WinMenu object as a template.
Go to Content Browser and open the UI folder inside FirstPersonBp. Right-click on WinMenu and select the Duplicate option. Name this new Blueprint Widget LoseMenu. Now, open LoseMenu and select the text object showing You Win. Look at the Details panel and change the Text field under Content to You Lose. Try Again?. Also, change the Color and Opacity setting to a dark red color. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access