Thread: Circles!
View Single Post
  #20  
Old 02-07-2002, 07:40 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Re: Circles!

Quote:
Originally posted by Kaimetsu


Cartesian coords: (centerx+mag*cos(ang),centery+mag*sin(ang))

Increase the angle and watch it spin.
what about this instead?
centerx+mag*cos(ang+rotate),centery+mag*sin(ang+ro tate)

it seems when you add to the numbers inside the sin and cos it makes them rotate, which would make sence, but its just a sidenote. look:
NPC Code:

if (playerenters) {
this.dista = 5;
this.distb = 5;
timeout = .05;
}
if (timeout) {
for (i=0;i<10;i+=.1 {
showimg (i*10)+500,@.,30+sin(i)*this.dista,30+cos(i+this.r otate)*this.distb;
}
this.rotate+=.05;
timeout = .05;
}

__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote