Discuss Scratch

dareelcottonmouth_
Scratcher
8 posts

How to Make a Health Bar

I'm making a game that requires a health bar. My idea is to make the health bar grow smaller when the character takes damage. I want it to show percentages that are more or less exact. So far, my only idea on how to do this is by making a hundred different costumes by hand. I feel like there has to be a better way to do it. Does anyone have any ideas?
NMario84
Scratcher
1000+ posts

How to Make a Health Bar

Did you try watching the griffpatch tutorial on health bars? He did 2 tutorials on it, actually, and the newer one is smoother.

https://www.youtube.com/watch?v=dtMy3umcoEI - Smooth health bar tutorial.

https://www.youtube.com/watch?v=rTKDzz_d6X4 - Original health bar video
IloveRoblox003
Scratcher
1000+ posts

How to Make a Health Bar

dareelcottonmouth_ wrote:

I'm making a game that requires a health bar. My idea is to make the health bar grow smaller when the character takes damage. I want it to show percentages that are more or less exact. So far, my only idea on how to do this is by making a hundred different costumes by hand. I feel like there has to be a better way to do it. Does anyone have any ideas?
Use pen and Math.Equations to your game.Players so you can draw() your local healthPoints = 100

Last edited by IloveRoblox003 (March 19, 2025 01:49:47)

dareelcottonmouth_
Scratcher
8 posts

How to Make a Health Bar

NMario84 wrote:

Did you try watching the griffpatch tutorial on health bars? He did 2 tutorials on it, actually, and the newer one is smoother.

https://www.youtube.com/watch?v=dtMy3umcoEI - Smooth health bar tutorial.

https://www.youtube.com/watch?v=rTKDzz_d6X4 - Original health bar video
Thanks. I'll take a look at it.

Powered by DjangoBB