View Single Post
  #2  
Old 02-06-2010, 07:28 PM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by Engine View Post
I cannot figure out how to change the alpha on polygons, could anyone help me? I want to use polygons with the particle engine to mess around but I can't seem to figure it out.
PHP Code:
function ShowPolyTest(){
  
showpoly(200,{22,22,22,25,25,25,25,22});
  
this.alpha 0.5;
  
with(findimg(200)){
      
this.alpha 0.5;
  }

PHP Code:
function ShowPolyTest(){
  
temp.polygonObj showpoly(200,{22,22,22,25,25,25,25,22});
  
temp.polygonObj.mode 1;
  
temp.polygonObj.alpha 0.5;

As I PMed you on Testbed, this seems to do the trick, if that's the effect you're looking for.
Reply With Quote