Are you talking about this:
NPC Code:
for(i = 0; i<25; i++
{
this.mv+=.25;
this.x = 32+cos(this.mv)*5;
this.y = 32+sin(this.mv)*5;
showimg i,door.png,this.x,this.y;
}
?
cos and sin are reverse of eachother, so that means when cos is going up sin is going down on the same number.
