How to Make a Health Bar Godot 2d Tutorial | The Combat Series #3

In this tutorial, we will add a health bar in Godot (TextureProgress). We change its colour based on HP left, and we add a tween for a smooth transition.

Timestamps:
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 colour 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 ๐Ÿ™‚

Follow me on Twitch and watch game development happen in front of your eyes, and ask any question: https://twitch.tv/stefan_gamedev

I stream every Tuesday and Thursday from
19:00 to 22:00 (UTC), that’s;
12:00 to 15:00 (PST), or
15:00 to 18:00 (EST).

Follow me on Twitter to get information on my personal game development, new tutorials, vote on polls to determine future tutorials, series, and/or episodes:
https://twitter.com/GamedevStefan

GDC, Game Development Center, was created to provide in-depth tutorials on game design and game development with Godot. We aim for multi-part tutorials, allowing us to dive deeper into Godot’s features. You can request tutorials on additional features within a given topic. No promises, but we’ll do our best to make it happen ๐Ÿ™‚

Post Author: hatefull