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!