Something wrong with my pen health bar
id: 753212
category: Help with Scripts
posts: 7
prevu
loading
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
loading
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
MineTurte
loading
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
prevu
loading
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
loading
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.
prevu
loading
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
loading
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?