Try this alternate code, it seems to work better for some reason:
PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
this.red = 0;
this.green = 0;
this.blue = .5;
this.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});
with(findimg(200)) {
red = thiso.red;
green = thiso.green;
blue = thiso.blue;
alpha = thiso.alpha;
layer = 3;
mode = 1;
}
}