Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.