0 votes

I want to make a health bar for my 2D top down character which is similar to the MOBA games.

For instance, this is the image of a health bar in the game called Leauge of Legend:

This is the health bar of a level 1 character in the game

This is the health bar of a level 13 character in the game (sorry for the blurry image)

As you can see, when the character's health increases, the health bar has more "sticks" inside it, which let the player know how much health the character has with only a glance.

I have no idea how to create this kind of health bar, so it would be great if you can give me a code sample or at least a few hints. I couldn't find any tutorials related to what I intend to make, so any of your efforts are deeply appreciated.

Godot version godot 3.3
in Engine by (58 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmas[email protected] with your username.