Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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 Game Development Cookbook

You're reading from   Unreal Engine Game Development Cookbook Over 40 recipes to accelerate the process of learning game design and solving development problems using Unreal Engine

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784398163
Length 326 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
John P. Doran John P. Doran
Author Profile Icon John P. Doran
John P. Doran
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting Acquainted with the UE4 Interface 2. Level Design – Building Out Levels or Greyboxing FREE CHAPTER 3. Creating Quality Interior Environments 4. Building the Great Outdoors – Exterior Environments 5. Lights, Camera, Action – Cinematics 6. Lighting and Shadows 7. Art Pipeline – Working with Materials 8. Blueprint Scripting – Level Effects 9. C++ Programming – Gameplay 10. User Interface 11. Publishing and Deployment Index

Creating a Health/Damage system, part 1 – taking damage


Games will often need the ability to give health to players and/or enemies and players need to have the ability to gain and/or lose the health. In this recipe, it being the first of a two-part recipe, we will create the ability to take and heal damage, whereas later on in Chapter 10, User Interface, we will use the UI tools in Unreal to display this information.

Getting ready

Before we start working on this, we need to have a project created and set up for our character to actually have health and a way to damage it. Follow these steps:

  1. First, open up the Unreal Editor by clicking on the Launch button from the Unreal Engine Launcher.

  2. Start a new project from the Project Browser tab by selecting the New Project tab. Select Third person and make sure that With Starter Content is selected. Give the project a Name (Cookbook_Chapter8). Once you are done, click on Create Project.

How to do it…

Now, once the project is created, the first step here...

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