Okay here is my lives code, the variables have not been changed:
if playerhealth=0 then lives=lives-1: playerhealth=max_hp
if lives>1 then exit
That is what I have, it regenerates the healthbar but it keeps doing that not stopping after five deaths.
Here's my healthbar code:
`Health
`Black Background box
INK RGB(10,10,10),0
` now, draw the background box. White box, at bottom of screen, which will be as big as the 'maxhealth' variable
box 40,454,(max_hp+2)/2+25,458
` now for your actual health, colour change to red
INK RGB(250,0,0),0
` and then draw a box, 1 pixel smaller than the previous one in each direction (so that the white box will be an outline) and this box is as long as your health variable
box 41,455,playerhealth/2+25,457
Got anime?I do.