Animated health bars in 3D space | Godot 4

Опубликовано: 16 Октябрь 2024
на канале: Octodemy
2,641
123

Here's how to make 2D Health bars show up in 3D space.
How to sub-viewports to display any control node in 3D.
How to animate them. As well as a simple test game.
Using TexturedProgressBars or normal ProgressBars nodes that look good using theme overrides.

····················································································
Want to support me?
https://ko-fi.com/octodemy
Source code
  / octodemy  
····················································································

CHAPTERS:
0:00 Intro
0:15 The health bar
1:12 Bar without textures
2:44 Sub-viewport
4:50 Improving the bar
6:18 Health bar component
7:23 Enemy script
8:28 Animate damage
8:55 Making a simple game
10:01 Outro

#godot #godot4 #healthbars

----Personal notes
Forgot to zoom in on the gameplay video in the outro/conclusion section of the video.
I planned to do a quick video on how to use sub-viewports for HP bars but ended up as this.
I recorded the voice at night..
I still can't get the hang of how to make the voice recording sound good, no matter what I do, it always feels like its too quiet.
Some recordings at the at the start sounded very unnatural but it gradually improved along the video.