Hello! I need a little help with this.
It should be like...
NPC Code:
if(created){
dontblock;
drawaslight;
setimgpart greek.gif,32,0,32,32;
}
if (playertouchsme) {
setcoloreffect 1,1,1,.3;
setimgpart greek.gif,32,0,32,32;
x+=2;
}
but then when you stop touching it should go like...
setcoloreffect 1,1,1,1;
setimgpart greek.gif,0,0,96,32;
x-=2;
Nappa Helped me and it turned too:
NPC Code:
//NPC made by FreezeBurnX
//Edited by Nappa
//#CLIENTSIDE
if(created){
dontblock;
drawaslight;
setimgpart greek.gif,32,0,32,32;
}
if(playertouchsme){
setcoloreffect 1,1,1,.3;
timeout=.5;
}
if(timeout){
if(playerx!=x){
setcoloreffect 1,1,1,1;
timeout=.5;
}
}
But I want that if you are touching/under it still will
NPC Code:
setcoloreffect 1,1,1,.3;
But it return too
NPC Code:
setcoloreffect 1,1,1,1;
With the timeout
