View Single Post
  #6  
Old 05-19-2007, 03:14 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by oinknessx View Post
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);

Well first of all your defining onTimeout() twice, setTimer() automatically the onTimeout event. And if you want the light to be moving, you need to have a constantly changing x/y value. (x/y - 3) stays the same
Reply With Quote