View Single Post
  #1  
Old 07-11-2004, 10:37 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
showpoly question

How come this npc does not show the poly
that I want it to draw?
It looks right to me, and the item placement for
the x and y check work.
Ideally I want just a line to draw from the player then to go up
till it hits an onwall or the top of the level.

NPC Code:

// NPC made by Prozac
if (created || playertouchsme) {show; toweapons Line npc;}

if (weaponfired)
{
//draw a line going up this level or until till onwall
this.y=playery-.5;
this.x=playerx+1;
while (this.y>0 || !(onwall(this.x,this.y)))
{
showpoly 10,(playerx,playery,this.x,this.y);
changeimgvis 10,2;
changeimgcolors 10,1,1,1,1;

//the bombs show up .. why not the line?
// putbomb 1,this.x,this.y;

this.y--;
sleep .05;
}
}



Any help would be appreciated!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote