View Single Post
  #8  
Old 06-16-2004, 09:49 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
try somethin like this
NPC Code:

if (mousedown) {
dx = mousex - x;
dy = mousey - y;
dist = (dx^2+dy^2)^.5;
speed = dist * .05;
move dx,dy,speed,;
}

Reply With Quote