
06-05-2006, 03:39 PM
|
|
Development Staff
|
 |
Join Date: May 2006
Posts: 161
|
|
|
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);
} |
__________________
|
|
|
|