Looks fine to me, not sure why you're using temp.block though.
PHP Code:
function onBlock( temp.sX, temp.sY, temp.eW, temp.eH)
{
for ( temp.a = 0; temp.a < temp.eW; temp.a ++;)
{
for ( temp.b = 0; temp.b < temp.eH; temp.b ++;)
{
temp.test = player.gmap.tilelayers[ 1].tiles[ temp.sX + temp.a, temp.sY + temp.b];
if ( temp.test in this.blockTiles)
{
return true;
}
}
}
return false;
}
Your formatting sucks, by the way...