So why does this NOT work?
PHP Code:
//#CLIENTSIDE
function onMouseDown() {
this.angle = random(0,360); // angle
this.distance = random(5,7); // distance
this.nx = x + sin(this.angle) * this.distance;
this.ny = y + cos(this.angle) * this.distance;
with ( findImg( 4000)) {
polygon = {
this.nx, this.ny,
this.nx-(2/16), this.ny-(2/16),
x-(2/16),y-(2/16),
x, y
};
layer = 3;
}
chat = this.nx SPC this.ny;
}
The NPC chats the correct cords but does not move to draw poly properly..