Thread: screen size
View Single Post
  #7  
Old 11-09-2001, 12:47 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by BocoC
Welcome ^_^ People normally use screenwidth and screenheight to place custom status bars on screen. Like:
NPC Code:

if (timeout) {
showimg 1000,myhpbar.gif,screenwidth*0.85,screenheight*0.1 ;
changeimgpart 1000,0,0,int(playerhearts/playerfullhearts),10;
timeout=0.05;
}

it would look better like this

NPC Code:

if (timeout) {
showimg 1000,myhpbar.gif,screenwidth-150,50;
changeimgpart 1000,0,0,int(playerhearts/playerfullhearts),10;
timeout=0.05;
}



so then it is always constant on were it is on the screen (so it doesn't get moved if you get what I mean)
__________________
Thanks,
-KJL
Reply With Quote