Well that sort of makes sense. But Rapidwolve, after you have the function of pie(); being called to start, how do you say what the pie action actually is? Do you put it like,
function pie(){
//stuff
}
Is that right?
So to make a timeout, you would put
function onTimeout(){
onPlayerEnters();
}
So then that would equal if (playerenters&&timeout), but where exactly do you put the commands to be cycled within the timeout? Just below, anywhere? Like you guys did with the playerchats stuff?
I think I'm learning something!
I tried to incorporate what you guys are saying into a script, but the light effect is static and doesn't move. -_- What's wrong here?
PHP Code:
function onTimeout(){
onCreated();
}
function onCreated(){
setimgpart("lampanimation.gif",0,0,19,35);
dontblock();
setTimer(.1);
}
function onTimeout(){
showimg(1,light2.png,x-3,y-3);
changeimgcolors(1,1,0.4,0,0.8);
changeimgzoom(1,random(.8,1));
setTimer(.1);
}