Thread: seteffect
View Single Post
  #2  
Old 01-10-2007, 12:15 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
No, But you could simulate it with a big white image, and color it accordingly. Then use transparency mode (mode = 1 I believe).

PHP Code:
//Serverside 
function onCreated() {
  
setimg("some_white_image_thatyou_made.png");
  
dontblock();
}
//#CLIENTSIDE
function onCreated() {
  
drawaslight();
  
this.red 0this.green 0this.blue .5this.alpha .5;
  
setcoloreffect(this.red,this.green,this.blue,this.alpha);
  
seteffectmode(1);

Could also be done with showpoly too, might even be more flexible

PHP Code:

//#CLIENTSIDE
function onPlayerEnters() {
  
this.red 0this.green 0this.blue .5this.alpha .5;
  
this.wd 10//How many tiles wide?
  
this.ht 10//How many tiles long?
  
showpoly(200,{this.x,this.y,this.x+this.wd,this.y,this.x+this.wd,this.y+this.ht,this.x,this.y+this.ht});
  
changeimgvis(200,3);
  
changeimgcolors(200,this.red,this.green.this.blue,this.alpha);
  
changeimgmode(200,1);

__________________

subliminal message: 1+1=3
Reply With Quote