Supporting our Community:
We’re making Learn Premium available to all users in perpetuity.
Start Learning.

Introducing Health

Tutorial
Beginner
30 Mins
Overview
Details
Your progress
Summary
You will add health and define the winning conditions for the game
Tutorial Outcome
By the end of this tutorial, you will be able to
  • Add script to keep track of the health of a player
  • Make obstacles subtract a player’s health
  • Display the health of a player
  • Add User Interface design to the game
  • Tag GameObjects
  • Define the winning conditions
Key concepts:
  • Health System Attribute script
  • Modify Health Attribute script
Challenge Ideas:
  • Try introducing a GameObject that allows the player to recover points. Hint: it’s really important to use a positive value for the Modify Health Attribute script’s Health Change section
Select your Unity version
Last updated: February 13, 2020
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
Topics we'll cover
Industry
Language
English
Tutorial
Introducing Health
0
Introducing Health