Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Blueprints Visual Scripting for Unreal engine

You're reading from   Blueprints Visual Scripting for Unreal engine Build professional 3D games with Unreal Engine 4's Visual Scripting system

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher Packt
ISBN-13 9781785286018
Length 188 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Brenden Sewell Brenden Sewell
Author Profile Icon Brenden Sewell
Brenden Sewell
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

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 remake the UI screen from scratch, we can save some time by using our WinMenu object as a template.

Go to the 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. Finally, you may wish to change the Shadow Color setting's alpha value from 0.0 to 1.0 to show shadows behind the text, as shown in this screenshot:

The two buttons can remain identical to their WinMenu counterparts in appearance and functionality for now...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime