Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Unreal Engine 4.X By Example

You're reading from   Unreal Engine 4.X By Example An example-based practical guide to get you up and running with Unreal Engine 4.X

Arrow left icon
Product type Paperback
Published in Jul 2016
Publisher Packt
ISBN-13 9781785885532
Length 506 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Benjamin Carnall Benjamin Carnall
Author Profile Icon Benjamin Carnall
Benjamin Carnall
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Introduction to Unreal Engine 4 FREE CHAPTER 2. Blueprints and Barrels – Your First Game 3. Advanced Blueprint, Animation, and Sound 4. Unreal Engine, C++, and You 5. Upgrade Activated – Making Bounty Dash with C++ 6. Power Ups for Your Character, Power Ups for the User 7. Boss Mode Activated – Unreal Robots 8. Advanced AI and Unreal Rendering 9. Creating a Networked Shooter 10. Goodbyes and Thank yous Index

Completing the Bounty Dash game loop!


With our HUD in place, we can now implement the functionality to finish the Bounty Dash game loop. We need to be able to end the game when the player reaches the same kill point that destroys the objects that are moving down the game field. Upon reaching this kill point, we should pause the game and present the player with game over text. Upon game over, the player should also be able to press R to reset the game. To achieve this, we are going to have to make edits to the ABountyDashGameMode class to support game over and pause functionality, to the ABountyDashCharacter class to support restarting, and to the ABountyDashHUD class so that we can draw the game over text.

The beginning of the end and pausing the game

Instead of having the game suddenly pause when the player reaches the kill point, it would be more user-friendly to have the character fall for a short while before we pause the game and report that the game is over. To do this, we are going...

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