Uploaded October 2019 | Updated November 2026, 2 hours ago
In this tutorial, we will add a health bar in Godot (TextureProgress). We change its color based on HP left, and we add a tween for a smooth transition.
Timestamps:
0:00 Intro
1:40 Adding TextureProgress Node
2:27 Setting up HPBar (explanation)
4:17 Setting up HPBar (practice)
6:19 Setting the value of HP
9:37 Removing the HP Bar on Death
12:00 Setting up the Script for more features
13:34 Changing HP Bar Colour Based on Percentages
16:29 Using a Tween for Smooth Transitions (explanation)
20:14 Using a Tween for Smooth Transitions (practice)
23:27 Next Episode Announcement
Health bar Godot 2d Tutorial that teaches you everything there is to know about health bars in Godot. Setting it up, changing color, and smooths transitions using a tween. It doesn't matter with kind of health bar you want to make, with this tutorial you can apply 1 or all of the lessons to make just the right health bar for your Godot game. Simultaneously you will learn how the TextureProgress node and tween node work, so you will be able to use them for other purposes too :)
⬧⬧⬧⬧⬧ GDC TUTORIALS ⬧⬧⬧⬧⬧
I believe educational material should be available to all, for free
Support this vision by joining the GDC-Club and get perks in return
youtube.com/c/gamedevelopmentcenter/join
patreon.com/gamedevelopmentcenter
⬧⬧⬧⬧⬧ LEARN MORE GAMEDEV ⬧⬧⬧⬧⬧
These books have helped me in my game design and programming, I whole fully recommend them to you!
Level Up! The Guide to Great Video Game Design ►► amzn.to/3hIg6dE
Game Programming Patterns ►► amzn.to/35IoDsH
The Art of Game Design: A Book of Lenses ►► amzn.to/35MSHoU
⬧⬧⬧⬧⬧ LIVESTREAMS ⬧⬧⬧⬧⬧
I Livestream game development twice a week right here on YouTube.
Subscribe and hit that Bell Icon to make sure you don't miss it!
youtube.com/c/GameDevelopmentCenter?sub_confirmation=1
Tuesday and Thursday
1900 to 2200 (GMT+1/2 (winter/summertime), that's;
1200 to 1500 (PST), or
1500 to 1800 (EST).
⬧⬧⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧⬧⬧
Join the community! Follow me on Social!
DISCORD ►► discord.gg/DwcFXyS
TWITTER ►► twitter.com/GamedevStefan
⬧⬧⬧⬧⬧ ABOUT GDC ⬧⬧⬧⬧⬧
GDC, Game Development Center, was created to provide in-depth tutorials on game design theory and game development using the Godot Game Engine. I aim for multi-part Godot tutorials, allowing me to dive deeper into Godot's features.
⬧⬧⬧⬧⬧ ASSETS USED ⬧⬧⬧⬧⬧
https://www.kenney.nl/assets/isometric-dungeon-tiles
opengameart.org/content/flare-skeleton-mod-skeletal-occultist
opengameart.org/content/flare-skeleton-mod-skeletal-knight
opengameart.org/content/icicle-spell
opengameart.org/content/rpg-gui-construction-kit-v10
⬧⬧⬧⬧⬧ DISCLAIMER ⬧⬧⬧⬧⬧
Some of these links go to one of my websites and some are affiliate links where I'll earn a small commission if you make a purchase at no additional cost or disadvantage to you. You will receive the same price and service.
In this tutorial, we will add a health bar in Godot (TextureProgress). We change its color based on HP left, and we add a tween for a smooth transition.
Timestamps:
0:00 Intro
1:40 Adding TextureProgress Node
2:27 Setting up HPBar (explanation)
4:17 Setting up HPBar (practice)
6:19 Setting the value of HP
9:37 Removing the HP Bar on Death
12:00 Setting up the Script for more features
13:34 Changing HP Bar Colour Based on Percentages
16:29 Using a Tween for Smooth Transitions (explanation)
20:14 Using a Tween for Smooth Transitions (practice)
23:27 Next Episode Announcement
Health bar Godot 2d Tutorial that teaches you everything there is to know about health bars in Godot. Setting it up, changing color, and smooths transitions using a tween. It doesn't matter with kind of health bar you want to make, with this tutorial you can apply 1 or all of the lessons to make just the right health bar for your Godot game. Simultaneously you will learn how the TextureProgress node and tween node work, so you will be able to use them for other purposes too :)
⬧⬧⬧⬧⬧ GDC TUTORIALS ⬧⬧⬧⬧⬧
I believe educational material should be available to all, for free
Support this vision by joining the GDC-Club and get perks in return
youtube.com/c/gamedevelopmentcenter/join
patreon.com/gamedevelopmentcenter
⬧⬧⬧⬧⬧ LEARN MORE GAMEDEV ⬧⬧⬧⬧⬧
These books have helped me in my game design and programming, I whole fully recommend them to you!
Level Up! The Guide to Great Video Game Design ►► amzn.to/3hIg6dE
Game Programming Patterns ►► amzn.to/35IoDsH
The Art of Game Design: A Book of Lenses ►► amzn.to/35MSHoU
⬧⬧⬧⬧⬧ LIVESTREAMS ⬧⬧⬧⬧⬧
I Livestream game development twice a week right here on YouTube.
Subscribe and hit that Bell Icon to make sure you don't miss it!
youtube.com/c/GameDevelopmentCenter?sub_confirmation=1
Tuesday and Thursday
1900 to 2200 (GMT+1/2 (winter/summertime), that's;
1200 to 1500 (PST), or
1500 to 1800 (EST).
⬧⬧⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧⬧⬧
Join the community! Follow me on Social!
DISCORD ►► discord.gg/DwcFXyS
TWITTER ►► twitter.com/GamedevStefan
⬧⬧⬧⬧⬧ ABOUT GDC ⬧⬧⬧⬧⬧
GDC, Game Development Center, was created to provide in-depth tutorials on game design theory and game development using the Godot Game Engine. I aim for multi-part Godot tutorials, allowing me to dive deeper into Godot's features.
⬧⬧⬧⬧⬧ ASSETS USED ⬧⬧⬧⬧⬧
https://www.kenney.nl/assets/isometric-dungeon-tiles
opengameart.org/content/flare-skeleton-mod-skeletal-occultist
opengameart.org/content/flare-skeleton-mod-skeletal-knight
opengameart.org/content/icicle-spell
opengameart.org/content/rpg-gui-construction-kit-v10
⬧⬧⬧⬧⬧ DISCLAIMER ⬧⬧⬧⬧⬧
Some of these links go to one of my websites and some are affiliate links where I'll earn a small commission if you make a purchase at no additional cost or disadvantage to you. You will receive the same price and service.










