View Single Post
  #4  
Old 05-19-2007, 03:01 AM
oinknessx oinknessx is offline
Banned
oinknessx's Avatar
Join Date: Apr 2004
Location: United States
Posts: 646
oinknessx is on a distinguished road
Send a message via AIM to oinknessx
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);

Reply With Quote