Game Technology Workshop 2 - Health Bar
For this assignment we have got the following learning goals:
For this Workshop I have taken the 2D game from the animation workshop and added a health bar to the game. The health of the player goes down when a purple coin is taken and goes up when a gold coin is taken.
I have also researched how to delete and spawn new objects.
Sources:
How to create Progress Bars in Unity
How to make a HEALTH BAR in Unity!
Unity C# Creating and Deleting Objects
Vector3.operator +
- You are able to use the Collider2D components and understand the 'isTrigger' variable.
- You are able to store a value on a GameObject using a custom MonoBehaviour.
- You are able to use the OnTrigger/OnTrigger2D callbacks to modify a value on another GameObject
- You are able to use the Unity UI system to create a health bar
- You are able to display the player object's current health in the UI
- You are able to use UnityEvents to update the UI only when necessary
I have also researched how to delete and spawn new objects.
Sources:
How to create Progress Bars in Unity
How to make a HEALTH BAR in Unity!
Unity C# Creating and Deleting Objects
Vector3.operator +
Comments
Post a Comment