
07-26-2004, 09:04 AM
|
|
call me Chad, it's cooler
|
 |
Join Date: Aug 2002
Posts: 1,899
|
|
|
just use this.dist, that seems to be what I did whenever I used move
Goboom, that's not how it works, exactly. The dx and dy are vector parts, distance variables rather. It's the x distance and y distance the npc needs to move, not it's position. Upon further examination, yours only works because of the typo and the strange numbers you feed it (5 is grabbed out of thin air, you need to have the real distance) |
|
|
|