Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A different showpoly question (https://forums.graalonline.com/forums/showthread.php?t=67892)

Omini 08-06-2006 01:54 AM

A different showpoly question
 
N.B. This question is related to showpoly, but it's a different question than what the other showpoly topic contains.

Does anyone know if it's possible to cause a poly to 'fade'?

I tried:

PHP Code:

showpoly(4000,{0,0,screenwidth,0,screenwidth,screenheight,0,screenheight});
changeimgcolors(4000,1,1,1,0.3); 

But it just stays as a solid white. Does anyone know if it's possible to fade it? (and if so, can you tell me please?)

contiga 08-06-2006 12:59 PM

Quote:

Originally Posted by Omini
N.B. This question is related to showpoly, but it's a different question than what the other showpoly topic contains.

Does anyone know if it's possible to cause a poly to 'fade'?

I tried:

PHP Code:

showpoly(4000,{0,0,screenwidth,0,screenwidth,screenheight,0,screenheight});
changeimgcolors(4000,1,1,1,0.3); 

But it just stays as a solid white. Does anyone know if it's possible to fade it? (and if so, can you tell me please?)

PHP Code:

with findImg4000)) { 
  
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
  
alpha 0.3;
  
layer 4;


Should work

xXziroXx 08-06-2006 03:44 PM

If you mean if its possible to set transparency to polys, then yes - but only online for some reason.

Omini 08-06-2006 08:46 PM

Quote:

Originally Posted by contiga
PHP Code:

with findImg4000)) { 
  
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
  
alpha 0.3;
  
layer 4;


Should work

Doesn't appear to. No matter what I have alpha set to, it just stays as solid white.

contiga 08-07-2006 12:15 PM

Quote:

Originally Posted by Omini
Doesn't appear to. No matter what I have alpha set to, it just stays as solid white.

Try this then:
PHP Code:

with findImg4000)) {
  
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
  
green 0.9;
  
alpha 0.3;
  
blue 0.9;
  
red 0.9;
  
layer 4;


Should be still a bit white, but transparant.

Omini 08-07-2006 09:54 PM

I have

PHP Code:

with (findImg(4000)) {
        
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
        
alpha 0.3;
        
red 0.9;
        
green 0.9;
        
blue 0.9;
        
layer 4;
      } 

I also tried

PHP Code:

with (findImg(4000)) {
        
polygon = { 00screenwidth0screenwidthscreenheight0screenheight};
        
this.alpha 0.3;
        
this.red 0.9;
        
this.green 0.9;
        
this.blue 0.9;
        
layer 4;
      } 

But it doesnt appear to work... anything noticable that's causing the problem?

Angel_Light 08-08-2006 12:26 AM

have you tried changing the mode to 1 and letting it fade that way

contiga 08-08-2006 11:27 AM

Try this:
PHP Code:

red green blue 0


Omini 08-08-2006 06:40 PM

Would using 'transparency = .3;' do anything within the findimg?

Angel_Light 08-09-2006 03:37 AM

I dont think tranparecy is a command.

mode = 1;
alpha = 0.3;

that would fade the img without adding/taking away light


All times are GMT +2. The time now is 04:16 PM.

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