PHP Code:
//#CLIENTSIDE
function onCreated()
{
setImg( "imagename");
this.imgwidth = #; // Set this to the pixel width of the image.
this.imgheight = #; // Set this to the pixel height of the image.
drawoverplayer();
dontblock();
setTimer( .05);
}
function onTimeOut()
{
if (player.x in |x, x + (this.imgwidth/16)|
&& player.y in |y, y + (this.imgheight/16)|) {
setcoloreffect( 1, 1, 1, .4);
} else setcoloreffect( 1, 1, 1, 1);
setTimer( .05);
}
Works in theory, didnt test it.