Bored, might aswell improve it with getImgWidth/Height:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
setImg( "imagename");
drawoverplayer();
dontblock();
setTimer( .05);
}
function onTimeOut()
{
if (player.x in |x, x + (getImgWidth( this.image)/16)|
&& player.y in |y, y + (getImgHeight( this.image)/16)|) {
setcoloreffect( 1, 1, 1, .4);
} else setcoloreffect( 1, 1, 1, 1);
setTimer( .05);
}