xx = NPC.x-x; yy = NPC.y-y; global.NPCdist = sqrt(xx*xx+yy*yy);...which checks the distance between the main character and an NPC. When I put in a second instance of the same NPC, it only works for the first of the instances place (the one with the lower ID). Is there any way to make this code work with multiple NPC?
Edited by ngc0202, 28 February 2010 - 06:36 AM.











