REGENERATING ENERGY BAR IN UNITY 🎮 | Energy System Unity Tutorial | Learn Unity For Free

Channel:
Subscribers:
497,000
Published on ● Video Link: https://www.youtube.com/watch?v=oPZdkL6htzs



Category:
Tutorial
Duration: 35:34
2,931 views
72


Creating a Stamina system in Unity can be tricky for some people. In this tutorial you will learn how to create a easy player stamina system that anyone can follow! 🙂 This system will be re-usable, meaning you can use it to add stamina to ANY unit inside your game, including enemies, friendly NPCs, etc...

This video will be based on the Health Bar tutorials I created prior to this video, so you will need to follow along on these first, before continuing watching this video. 🙂

#1 Health system: https://www.youtube.com/watch?v=9i0UGVUKiaE&ab_channel=DaniKrossing
#2 Health bar: https://www.youtube.com/watch?v=FBDN4b9PGgE&ab_channel=DaniKrossing

Time.deltaTime explained: https://www.youtube.com/watch?v=8pYq15Lh0x4&ab_channel=DaniKrossing

➤ TIMESTAMPS

00:00:00 - Introduction
00:00:41 - I have a confession...
00:01:33 - Setting up out UI Canvas
00:04:06 - Creating our UnitStamina script
00:14:37 - Creating our Staminabar script
00:17:06 - Instantiating our UnitStamina class
00:18:58 - Changing our PlayerBehaviour script
00:26:57 - Changing our Players sprint speed

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon and YouTube Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Memberships: https://www.youtube.com/channel/UCzyuZJ8zZ-Lhfnz41DG5qLw/join
Patreon: https://www.patreon.com/mmtuts




Other Videos By Dani Krossing


2022-12-06... AND THIS IS HOW FAR I GOT.
2022-11-14HOW TO CREATE TILEMAPS IN UNITY 🎮 | Tile maps & Tile Palettes in Unity | Learn Unity
2022-10-15CHANGE SCENE WITH BUTTON IN UNITY 🎮 | Scene Manager in Unity | Learn Unity
2022-10-112 WAYS TO CREATE A DOOR KEY SYSTEM IN UNITY 🎮 | 2D and 3D Key System Tutorial | Learn Unity
2022-10-04HOW TO MAKE DOOR OPEN AND CLOSE IN UNITY 🎮 | Open Doors 2D and 3D Tutorial | Learn Unity
2022-09-19HOW TO DO POST PROCESSING IN UNITY 🎮 | URP Unity Post Effects Tutorial | Learn Unity
2022-09-13HOW TO SET UP 2D LIGHT IN UNITY 🎮 | Unity URP 2D Lighting Tutorial | Learn Unity For Free
2022-09-07DRAWING MY FIRST PIXEL TREE! 😅 | Trying Out Aseprite For The First Time Aseprite First Look
2022-08-24EASIER ANIMATION USING CODE IN UNITY 🎮 | Unity Animation For Beginners | Learn Unity For Free
2022-08-15COMPLETE PIXEL ART GUIDE 🎮 | Pixel Art & Animation Tutorial For Beginners | Learn Unity For Free
2022-08-13REGENERATING ENERGY BAR IN UNITY 🎮 | Energy System Unity Tutorial | Learn Unity For Free
2022-07-06#17 | CREATING YOUR SECOND GAME IN UNITY 🎮 | Unity For Beginners | Unity Tutorial
2022-06-09CHANNEL UPDATE! | I Have A Second Gaming Channel
2022-06-04MAKE UI FOLLOW PLAYER IN UNITY 🎮 | How to Make UI Face Player | Learn Unity For Free
2022-05-31HOW TO MAKE A HEALTH BAR IN UNITY 🎮 | How to Make a Health Bar for Beginners | Learn Unity For Free
2022-05-28PLAYER HEALTH SYSTEM IN UNITY 🎮 | Health System Unity Tutorial | Learn Unity For Free
2022-05-24WHICH WAS YOUR FAVORITE? UNITY OR UNREAL? | 5 RANDOM INDIE GAMES | Indie Game Feedback
2022-05-23#16 | ARRAYS & LISTS IN UNITY 🎮 | Unity For Beginners | Unity Tutorial
2022-05-03#15 | IENUMERATOR & COROUTINE IN UNITY 🎮 | Unity For Beginners | Unity Tutorial
2022-04-16#14 | COLLISIONS AND TRIGGERS IN UNITY 🎮 | Unity For Beginners | Unity Tutorial
2022-04-15#13 | RIGIDBODY VS. TRANSFORM AND UPDATE VS. FIXEDUPDATE 🎮 | Unity For Beginners | Unity Tutorial



Tags:
stamina system in unity
how to make a stamina bar for my game
player energy system in unity
unit energy system in unity
how to create energy in unity
how to make player energy in unity
unity player energy tutorial
free energy bar in unity
how to create a energy bar in unity
how to make a energy bar for my game
energy system unity 2d
free energy system in unity
player energy unity
energy system unity tutorial
unity energy system
unity running bar