// ??? // move difference between player and npc positions diffX = pX - npcX; diffY = pY - npcY; // move difference to direction dirX = sign(diffX); dirY = sign(diffY); // add direction as distance each frame npcX += dirX; npcY += dirY; // ???
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de