View Single Post
  #2  
Old 11-23-2002, 07:58 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
There are several ways to make the showimg display at different places.

You do not need to use changeimgvis all the time. If it was a simple showimg index,img,x,y; then thats just what you do.

However, what I think you are doing, is changing the imgvis to 4. This is when the x and y co ordinates differ.

example:

//#CLIENTSIDE
if (playerenters){
showimg 1,egg.png,100,100;
changeimgvis 1,4;
}

This will show egg.png in the top left corner of the screen.

Another way of doing it is:

//#CLIENTSIDE
if (playerenters){
showimg 1,egg.png,screenwidth/2,screenheight/2;
changeimgvis 1,4;
}

This displayes egg.png in the centre of the players screen. screenheight + width only works when the layer is set to 4.

Also, showimg index, etc 0-199 shows images not local, above that it's local.

If you are confused about which shows over what then:
changeimgvis index,1;
will show under
changeimgvis index,2;

Also, you asked if both layers were set to 4. Well if you had a showimg 1 and a showimg 2 ... showimg 2 would be displayed on top.

I hope this helped =)

-Ning
Reply With Quote