
02-06-2002, 02:04 PM
|
|
Registered User
|
Join Date: Aug 2001
Posts: 378
|
|
|
-=Josey=-
Nice formula Kaimetsu. I wouldn't use showimg for that, I do believe showimg is local. So you could use something like this;
if (playerenters){
timeout=.05;
setimg light2.png;
setcoloreffect 0,0.5,1,0.99;
}
if (timeout) {
this.x=30;
this.y=30;
this.angle=(this.angle+.1)%6.28;
x = this.x+6*sin(this.angle);
y = this.y+6*cos(this.angle);
timeout=.05;
}
Just change this.x and this.y to wherever you want the light to be. |
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
|
|
|
|