View Single Post
  #2  
Old 07-28-2001, 05:09 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
this.radius is just a made up var..
you dont really need it . I personally use it just to say how far from the player. here is a little code for money that goes in a circle with adding radius(called spiraladd if u notice)..
NPC Code:

//npc made by LiquidIce
if (playertouchsme) {
toweapons Spiral Gold;
}

if (weaponfired) {
this.angle=0;
this.radius = 3;
this.spiraladd = 0;
while (this.angle<10) {
this.x=sin(this.angle);
this.y=cos(this.angle);
this.x*=(this.radius+this.spiraladd);
this.y*=(this.radius+this.spiraladd);
this.x+=(playerx);
this.y+=(playery);
lay2 goldrupee,this.x,this.y;
this.angle+=.2;
this.spiraladd+=.2;
sleep .01;
}
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote