Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Regenerating Energy Bar in Unity - Energy System Unity Tutorial

Dani Krossing via YouTube

Overview

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

Reviews

Start your review of Regenerating Energy Bar in Unity - Energy System Unity Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.