View Single Post
  #6  
Old 06-05-2006, 03:39 PM
xshadx xshadx is offline
Development Staff
xshadx's Avatar
Join Date: May 2006
Posts: 161
xshadx is on a distinguished road
What Im Using Is The Following, Maybe It Doesnt Work Because Im In Editor Mode? Maybe It's Because Im Missing Something.

//#CLIENTSIDE
function onCreated()
{
setImg( "block.png");
this.imgwidth = 32;
this.imgheight = 32;
drawoverplayer();
dontblock();

setTimer( .05);
}

function onTimeOut()
{
if (player.x in |x, x + (this.imgwidth/32)|
&& player.y in |y, y + (this.imgheight/32)|) {
setcoloreffect( 1, 1, 1, .4);
} else setcoloreffect( 1, 1, 1, 1);
setTimer( .05);
}
__________________

Reply With Quote