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

Pausing the game and resetting the save file


Now that we have the ability to track the player's progress, we should offer them the ability to reset their save file if they wish to begin the game from the start. We can accomplish this through the addition of a pause menu, which has the added benefit of allowing the player to take a temporary break in the action.

Creating a pause menu

First, we will create a pause menu that will present the player with options to resume playing the game, reset the game to round one, or to quit the application. Begin by going to the UI folder in the Content Browser. Right-click on LoseMenu and select the Duplicate option. Rename this new Blueprint widget to PauseMenu and open it.

Select the text displaying You Lose. Try Again?, and in the Details panel, change the Text field to say Paused…. Change the text color to a color you feel is appropriate for a pause message. Now select the Restart button's text object, and change the Text field to Resume.

Next, we will...

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 $19.99/month. Cancel anytime