Quote:
Originally posted by kyle0654
NPC Code:
showimg indexhere, bar.imgfile, xonscreen, yonscreen;
changeimgvis indexhere, 4;
setimgpart indexhere, topleftx, toplefty, int((hpnow/hpmax)*barwidth), barheight;
|
have you plugged that in yet?
indexhere = 200
bar.imgfile = (your status bar picture)
x/yonscreen = where on the screen (in pixels) you want the top left of the bar, from the top left of the screen.
topleftx/ywhere in the image file the top left of your bar is (probably 0,0)
barwidth/barheight how wide / tall your bar is
hpnow the player's current hp
hpmax the player's max hp