Thread: Player ap bar
View Single Post
  #4  
Old 12-01-2009, 08:17 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Any layer 4 and over can be displayed, so you can do things like..

changeimgvis(200, 5);

but the FP4 way is using findimg like so:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
drawAPBar();
  
setTimer(0.05);
}

function 
drawAPBar() {
  
with (findimg(200)) {
    
image "armageddon-bar.gif"
    
20;
    
20;
    
layer 4;
  }
  
with (findimg(201)) {
    
image "armageddon-ap.gif";
    
20;
    
20;
    
layer 5;
  }
}

function 
onTimeout() {
  
// Adjust the image width here using changeimgpart or partw, parth variables.
  
setTimer(0.05);

__________________
Quote:

Last edited by fowlplay4; 12-01-2009 at 10:31 PM..
Reply With Quote