Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » health bar
        ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
- someone182
- 
                             Scratcher 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 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.
                        
                        
                    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 Scratcher
87 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.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
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.
problem is that I won't have anything to hide the excess black part.
- deck26
- 
                             Scratcher 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?
                        
                        
                    So can you use pen or not?
- someone182
- 
                             Scratcher Scratcher
87 posts
health bar
So as I said, you don't need anything like 20000 different settings.idk
So can you use pen or not?
- someone182
- 
                             Scratcher Scratcher
87 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.Thanks, I will try testing this in my game.
- someone182
- 
                             Scratcher Scratcher
87 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.There is a problem with the pen. It goes to the back layer. I need it to go to the front
- Discussion Forums
- » Help with Scripts
- 
            » health bar ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
 
            ![[RSS Feed] [RSS Feed]](http://cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)


