Although it would be better if you used:
NPC Code:
this.nodes = 30; // number of points used to create this illusion of a circle through polygons
setarray this.circle,this.nodes * 2; // sets up the array
for(i=0; i<this.nodes; i++) { // uses a for loop to set the points
this.circle[2*i] = playerx + 1.5 + r * cos(theta);
this.circle[2*i+1] = playery + 1.5 + r * sin(theta);
}
where r is the size of the circle, and theta would be the angle swept out by the for loop in terms of i, pi and this.nodes.
Of course this is just an example, and cannot be used to substitute the code in chad's level.
The idea here is that it would fade in/out using the player's coordinates. Since it looks weird when the player is at the edge of the level and it just fades in/out on grass tiles.
I'm not sure if that made any sense, but if you have questions, post them here.