Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to create a reusable player stamina system in Unity with this comprehensive tutorial. Discover the process of setting up a UI canvas, creating UnitStamina and Staminabar scripts, and implementing them into your game. Follow along as the instructor guides you through instantiating the UnitStamina class, modifying the PlayerBehaviour script, and adjusting the player's sprint speed. This tutorial builds upon previous health system lessons, so it's recommended to watch those first. Gain valuable insights into Unity development, including the use of Time.deltaTime, to enhance your game creation skills.
Syllabus
- Introduction
- I have a confession...
- Setting up out UI Canvas
- Creating our UnitStamina script
- Creating our Staminabar script
- Instantiating our UnitStamina class
- Changing our PlayerBehaviour script
- Changing our Players sprint speed
Taught by
Dani Krossing