Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Something wrong with my pen health bar
- prevu
- Scratcher
3 posts
Something wrong with my pen health bar
Something wrong with my pen health bar.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
So when I made a health bar for my project, it wouldn't appear. I did everything right, so why won't it appear?
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
So when I made a health bar for my project, it wouldn't appear. I did everything right, so why won't it appear?
when green flag clicked
forever
erase all
Setup | custom block
Stamp | custom block
end
define Setup
go to x: (([X position v] of [Clicker v]) - (60)) y: (([Y position v] of [Clicker v]) + (60))
set pen size to (20)
set pen color to [Black]
pen down
repeat (4)
change x by (30)
end
pen up
define Stamp
go to x: (([X position v] of [Clicker v]) - (60)) y: (([Y position v] of [Clicker v]) + (60))
set pen size to (10)
set pen color to [Red]
set pen (transparency v) to ((0) / (0))
set pen color to ((HP) * ((8) / (8)))
pen down
repeat (4)
change x by (HP)
end
pen up
- Cool_Dude2022
- Scratcher
100+ posts
Something wrong with my pen health bar
Something wrong with my pen health bar.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
So when I made a health bar for my project, it wouldn't appear. I did everything right, so why won't it appear?when green flag clicked
forever
erase all
Setup | custom block
Stamp | custom block
end
define Setup
go to x: (([X position v] of [Clicker v]) - (60)) y: (([Y position v] of [Clicker v]) + (60))
set pen size to (20)
set pen color to [Black]
pen down
repeat (4)
change x by (30)
end
pen up
define Stamp
go to x: (([X position v] of [Clicker v]) - (60)) y: (([Y position v] of [Clicker v]) + (60))
set pen size to (10)
set pen color to [Red]
set pen (transparency v) to ((0) / (0))
set pen color to ((HP) * ((8) / (8)))
pen down
repeat (4)
change x by (HP)
end
pen up
Maybe because you set your pen transparency to 0/0? 0/0=undf
Did I help you fix your problem? If so, please nominate my project to be featured!
If my code is used, credit is NOT required
- MineTurte
- Scratcher
500+ posts
Something wrong with my pen health bar
Something wrong with my pen health bar.Without sharing the link I am limited to what info I can provide but do you have some sort of sprite covering the entire screen? That could be causing the issue
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
So when I made a health bar for my project, it wouldn't appear. I did everything right, so why won't it appear?when green flag clicked
forever
erase all
Setup | custom block
Stamp | custom block
end
define Setup
go to x: (([X position v] of [Clicker v]) - (60)) y: (([Y position v] of [Clicker v]) + (60))
set pen size to (20)
set pen color to [Black]
pen down
repeat (4)
change x by (30)
end
pen up
define Stamp
go to x: (([X position v] of [Clicker v]) - (60)) y: (([Y position v] of [Clicker v]) + (60))
set pen size to (10)
set pen color to [Red]
set pen (transparency v) to ((0) / (0))
set pen color to ((HP) * ((8) / (8)))
pen down
repeat (4)
change x by (HP)
end
pen up
(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!
If you found this secret, say uwu
Signature gradients here
- prevu
- Scratcher
3 posts
Something wrong with my pen health bar
Maybe because you set your pen transparency to 0/0? 0/0=undf
Well when I did that on my old account 0/0 solved the issue. But now it won't register.
- MineTurte
- Scratcher
500+ posts
Something wrong with my pen health bar
Also the color is set to 8/8 which is just 1 so idk why you have that…Maybe because you set your pen transparency to 0/0? 0/0=undf
Well when I did that on my old account 0/0 solved the issue. But now it won't register.
(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!
If you found this secret, say uwu
Signature gradients here
- prevu
- Scratcher
3 posts
Something wrong with my pen health bar
do you have some sort of sprite covering the entire screen? That could be causing the issueWithout sharing the link I am limited to what info I can provide but
Ok that was the problem but how would we move the health bar the to front of the screen?
- MineTurte
- Scratcher
500+ posts
Something wrong with my pen health bar
Unless you first stamp said sprite and then load in the health bar; it's impossible unfortunately.do you have some sort of sprite covering the entire screen? That could be causing the issueWithout sharing the link I am limited to what info I can provide but
Ok that was the problem but how would we move the health bar the to front of the screen?
Last edited by MineTurte (April 8, 2024 14:28:00)
(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!
If you found this secret, say uwu
Signature gradients here
- Discussion Forums
- » Help with Scripts
- » Something wrong with my pen health bar