Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   showimg\text hieght (https://forums.graalonline.com/forums/showthread.php?t=40553)

Zigidias 11-23-2002 08:58 AM

showimg\text hieght
 
I am having problems trying to get certain showimg\text commands to display the height corectly. I know i have to make he changeimgvis. But if both img's\text's are at 4 then how do i determin what is drawm higher?

Ningnong 11-23-2002 07:58 PM

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

Com013 11-24-2002 02:08 AM

Re: Re: showimg\text hieght
 
Quote:

Originally posted by Kaimetsu


Higher index. 5 is drawn above 4, for example.

I am sometimes using 5, but what is the highest number I can use? Or is it (nearly) infinite?

Ningnong 11-24-2002 02:19 AM

Im prittey sure it's 10.

Ningnong 11-25-2002 12:28 AM

doh..
 
I think it must be infinate =o

Zigidias 11-25-2002 07:32 AM

thanx ou to you all, you were big help :D


All times are GMT +2. The time now is 04:01 AM.

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