Thread: Set Effect
View Single Post
  #1  
Old 11-06-2009, 08:06 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Set Effect

Simple question.
What set effect values would make an image seem slightly transparent, but still have the regular colors and stuff, then what set effect puts it back to normal?
Ill go ahead and post my script, because its blocking and from what I know, it shouldn't be. Besides someone probably knows a better way to do what I'm trying to do anyways.

PHP Code:
function onCreated(){
  
setimg("armageddon-bridge11.png");
}
function 
onPlayerTouchsMe(){
  if (
this.touched == 1){
    
setcoloreffect(1,1,1,0.44);
    
setTimer(2);
  }
  if (
this.touched != 1){
    
this.touched 1;
  }
}

function 
onTimeout(){
  
setcoloreffect(0,0,0,1);
  
this.touched 0;
}
//#CLIENTSIDE
function onPlayerTouchsMe(){
  
dontblocklocal();
  
drawoverplayer();

__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote