Creating a WinMenu screen
To give the player feedback once they have won our game, we are going to create a WinMenu screen that will appear upon destroying the required number of targets. To create a menu, we are going to need another Blueprint widget, like what we developed for the HUD. Navigate to the UI folder we created and add a new Blueprint Widget, which is found under User Interface in the add menu. Name this Blueprint WinMenu.
We are going to set up three elements for this menu screen. The first will be a simple text object that broadcasts You Win! to the player. The other two elements will be buttons that allow the player to restart the game or quit it. To start with, drag two Button objects and one Text object onto CanvasPanel ...
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