Thread: img layers
View Single Post
  #2  
Old 12-08-2002, 08:46 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
doh

This has been posted before, but just to benefit you:

if you are using showimg's, then a showimg with an index of 201 will show over an index of 200.

Also, you can change the image layer.

changeimgvis index,layer;

eg

//#CLIENTSIDE
if (playerenters || timeout){
showimg 200,your_hp_bar.gif,100,100;
changeimgvis 200,4;
timeout = .05;
}

note: 4 draws on the players screen.
1 = same layer as player.
2 = layer over player
4 = on stats bar. co - ordinates change to screen co ordinates.

therefore, u can use this:

//#CLIENTSIDE
if (playerenters || timeout){
showimg 200,your_hp_bar.gif,screenwidth/2,screenheight/2;
changeimgvis 200,4;
timeout = .05;
}


* was an example *


P.S if you have multiple 'showimg'' and want all of them to have a layer of 4, i suggest using a for loop (saves work)

instead of

changeimgvis 200,4;
changeimgvis 201,4;
changeimgvis 202,4;
changeimgvis 203,4;

use:

for (i=0;i<=203;i++) changeimgvis i,4;

-Ningnong
Reply With Quote