Something wrong with my pen health bar

id: 753212

category: Help with Scripts

posts: 7

prevu 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?

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 wrote:

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 MineTurte loading

prevu wrote:

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
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
prevu prevu loading

Cool_Dude2022 wrote:

prevu wrote:

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 MineTurte loading

prevu wrote:

Cool_Dude2022 wrote:

prevu wrote:

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.
Also the color is set to 8/8 which is just 1 so idk why you have that…
prevu prevu loading

MineTurte wrote:

prevu wrote:

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

Ok that was the problem but how would we move the health bar the to front of the screen?
MineTurte MineTurte loading

prevu wrote:

MineTurte wrote:

prevu wrote:

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

Ok that was the problem but how would we move the health bar the to front of the screen?
Unless you first stamp said sprite and then load in the health bar; it's impossible unfortunately.