Discuss Scratch

someone182
Scratcher
87 posts

health bar

I want to make a health bar for my game. I know how to make a health bar, but the problem is that there is nothing to hide the excess bar behind, and I want it to have 20000 different states that it can be at. Is there a way to do it?
deck26
Scratcher
1000+ posts

health bar

Why would you need 20000 different states? The health bar has to fit in a screen width of 480 pixels even if it went right across the screen.

Using pen is one option but depends on there being nothing in front of the background (all pen is behind sprites/clones).

Perhaps you could share a prototype.
someone182
Scratcher
87 posts

health bar

deck26 wrote:

Why would you need 20000 different states? The health bar has to fit in a screen width of 480 pixels even if it went right across the screen.

Using pen is one option but depends on there being nothing in front of the background (all pen is behind sprites/clones).

Perhaps you could share a prototype.
I want to make a health bar for the bosses in a td game. This is what I mean by a health bar https://scratch.mit.edu/projects/952217118/fullscreen
problem is that I won't have anything to hide the excess black part.
deck26
Scratcher
1000+ posts

health bar

So as I said, you don't need anything like 20000 different settings.

So can you use pen or not?
RokCoder
Scratcher
1000+ posts

health bar

Here's an old project I made to show various approaches to health bars (with and without pen). Might be helpful. Might not.
someone182
Scratcher
87 posts

health bar

deck26 wrote:

So as I said, you don't need anything like 20000 different settings.

So can you use pen or not?
idk
someone182
Scratcher
87 posts

health bar

RokCoder wrote:

Here's an old project I made to show various approaches to health bars (with and without pen). Might be helpful. Might not.
Thanks, I will try testing this in my game.
someone182
Scratcher
87 posts

health bar

RokCoder wrote:

Here's an old project I made to show various approaches to health bars (with and without pen). Might be helpful. Might not.
There is a problem with the pen. It goes to the back layer. I need it to go to the front

Powered by DjangoBB