energy bars

BlitzPlus Forums/BlitzPlus Programming/energy bars

hey, i wanna add energy bars to the enemys in my space game but i'm a wee bit stuck as how to go about it. each enemy has it's own max hitpoints, current hitpoints , etc.

i tried something like

scaleimage energybar,maxhitpoint/currenthitpoints,1

anyhoo, everytime i scaled the image it scaled it based on it last size, whcih is a problem. i'm too used to 3d

any ideas/help would be magic :D

look up the drawimagerect command

thanks, that's great. can't belive i overlooked that :S

cheers again

mmmm... energy bars
my favorite is balance bars.

lol

check code archives (i think i put something in there)

thanks darkeagle. i've got them working, check out the 2d shoot-em up opinions thread to see them in action. but i'll look at your code none the less, see if it any better

cheers