| xXziroXx |
05-10-2007 04:22 PM |
Quote:
Originally Posted by Crow
(Post 1306760)
Its not really fixed if you use ganis. For example a gani for a tree...if the npc itself disappears (the part of a gani that normally blocks), the rest of it will also disappear. I just used setshape2 on Esteria to fix this. That should work well ;)
|
Not quite in my case..
PHP Code:
//#CLIENTSIDE
function onCreated()
{
setImgPart(image, 4*16, 13*16, 7*16, 5*16);
showImg(200, image, x - 4, y - 13);
changeImgPart(200, 0, 0, getImgWidth(image), getImgHeight(image) - (3*16));
changeImgMode(200, 1);
setShape2(5, 4, {
0, 22, 22, 22, 0,
22, 22, 22, 22, 22,
22, 22, 22, 22, 22,
22, 22, 22, 22, 22
});
drawUnderPlayer();
setTimer(.05);
}
function onTimeOut()
{
if (player.x in |x - 4, x + 6| && player.y in |y - 13, y|) changeImgColors(200, 1, 1, 1, .5);
else changeImgColors(200, 1, 1, 1, 1);
setTimer(.05);
}
|