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;
}