Okay this is an easy one, but for some reason I cannot get a line to draw to the players mouse from a given x/y of a npc.. Any suggestions here, i know its top left, top right, bottom right, and bottom left for the order of cords.. or am i wrong here?
PHP Code:
//#CLIENTSIDE
function onMouseDown() {
with ( findImg( 4000)) {
polygon = {
mousex, mousey,
mousex-(2/16), mousey-(2/16),
x, y,
x-(2/16),y-(2/16)
};
layer = 3;
}
}
All I am trying to do is make a line draw from the npc to the mouse.. =/
It seems to be twisting, but i cant get the cords working right, grr !!