How to create a notched HP bar?

Godot Version



I am looking for a way to add some sort of a “tick” or notch every 100 health so it is easy to tell which characters have more absolute health than others. The two methods I considered were to somehow draw over the top of the bar with the notches every 100 steps, or use a texture with a border on each side whose width is equal to the scale of 100 hp or something. Then the texture could just repeat for the width of the bar or something like that.
An example of what I am trying to replicate is the health bars in league of legends.

I’m just wondering if anyone has any experience with this and could advise, as I am new to Godot :smile:

a good place to start is func _draw(), allowing you to draw over a Sprite2D or TextureRect.