Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Was playing around with functions... (https://forums.graalonline.com/forums/showthread.php?t=37959)

gokux33 09-14-2002 10:57 PM

Was playing around with functions...
 
NPC Code:
for(this.a=0;this.a<1000;this.a++){
showimg this.a,light2.png,this.x,this.y;
this.x=x+this.a/this.r*sin(this.i-this.h);
this.y=y-this.a/this.r*cos(this.i2+this.h);
this.i--;
this.i2++;
changeimgzoom this.a,random(.01,.2);
changeimgvis this.a,3;
changeimgcolors this.a,0,random(.55,.6),random(.8,1),random(.8,1);
this.rr=random(2,3);
this.r = x-this.a/(this.r*arctan(this.i2)/sin(this.i)*cos(this.i2));
}
this.h+=.05;
showstats;
timeout=0.05;


gokux33 09-14-2002 11:08 PM

1 Attachment(s)
And for all you laaaazy people.

WanDaMan 09-14-2002 11:22 PM

Wow that would look great at a servers entrance were it starts with stars flying past and the screen goes down to reveal a movie scene of some sort=)

gokux33 09-14-2002 11:23 PM

Quote:

Originally posted by WanDaMan
Wow that would look great at a servers entrance were it starts with stars flying past and the screen goes down to reveal a movie scene of some sort=)
Nah. It looks like a pulsar to me.

WanDaMan 09-14-2002 11:24 PM

Quote:

Originally posted by gokux33
Nah. It looks like a pulsar to me.
I love it=)

gokux33 09-14-2002 11:26 PM

It's my first script with sin(), cos(), etc.. I've never done circle maths before.

emortylone 09-16-2002 11:18 PM

I do circle maths sometimes, but never do a lot of GFX such as this. Goku, I'm going to PM you :D
---Shifter

RavenTelvecho 09-17-2002 04:47 AM

RavenTelvecho, is impressed. Good job wind. :p

gokux33 09-17-2002 05:16 AM

Quote:

Originally posted by emortylone
I do circle maths sometimes, but never do a lot of GFX such as this. Goku, I'm going to PM you :D
---Shifter

Gah. Wind, not Gokuu. x_X

emortylone 09-17-2002 05:50 AM

He he... Wind sounds familliar...
---Shifter

magicbud3344 09-17-2002 06:27 AM

Quote:

Originally posted by gokux33
Gah. Wind, not Gokuu. x_X
hey goku long time no see

BladeSpirit 09-22-2002 09:04 PM

That's actually very impressive. The script isn't hard, but I never thought of making a nebula like that.

::down with the government!:: They kill visionaries!

=P

gokux33 09-26-2002 06:22 AM

Quote:

Originally posted by emortylone
He he... Wind sounds familliar...
---Shifter

Duh. I used to be Head Dev on Bab, silly.


All times are GMT +2. The time now is 12:38 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.