Evening...
Dunno for sure, but I think all you might be wanting, is to replace the second line with "for bar = 100 to 1 step -1". It's the "step -1" that does the trick!
Then again, if it wuz me, I might use a sprite - then I could make the bar look 3D by using a vertical gradient on the sprite's image!
Try something like this >>>
rem //// PSEUDO_CODE - IT WON'T COMPILE!
health = 100
load image "16x16_pixel-block", 1
sprite 1, position_x,position_y, 1
rem // GAMELOOP
do
rem // OTHER GAME STUFF GOES HERE...
if player_hit_by_monster()
health = health - 5
if health < 0
goto player_death_sequence
endif
endif
if picked_up_medipack()
health = health +50
if health > 100
health = 100
endif
endif
rem // ON-SCREEN DISPLAY CODE HERE...
rem // SET SIZE OF HEALTH BAR
stretch sprite 1, (10*health),100
rem // MORE DISPLAY STUFF...
loop