How to Make a Health Bar Godot 2d Tutorial | The Combat Series #3
Game Development Center
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 chat, watch and learn Godot and GameDev with a big group of Godot developers: https://twitch.tv/stefan_gamedev
I stream every Tuesday and Thursday from 19:00 to 22:00 (GMT+1/2 (winter/summertime), that's; 12:00 to 15:00 (PST), or 15:00 to 18:00 (EST).
If you like to show some support, I currently do not have a Patreon page as many have asked, instead you can drop a sub on twitch: https://www.twitch.tv/subs/stefan_gamedev or if you are more into sharing some support without public trails you can hit me with a donation on my donation page: https://streamelements.com/stefan_gamedev/tip
Want to learn more? Check these resources (referral) to up your GameDev Game :) Game Programming Patterns | For all coding languages | https://amzn.to/35IoDsH
Temporarily deals (referral)! Valid till 27 May on HumbleBumble, a HUGE discount on video game music from a single composer. Listen to previews on Soundcloud, pick your pack, from as low as $1,50 https://www.humblebundle.com/software/big-music-bundle-for-games-films-and-content-creators-software?partner=stefangamedev
Check out the new discord! Ask questions, share ideas, find other devs :) https://discord.gg/DwcFXyS
Follow me on Twitter to get some sneak peeks for upcoming content, and the occasion poll on what we should be doing next on here and stream: 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 ... https://www.youtube.com/watch?v=h5slNt__Tt8
155025363 Bytes