- Edited
CrayonApe Precalculate paths prior to runtime and store path points sampled in some time resolution (or A* points) into a dictionary structure keyed by timestamps. When player enters a map, find two consecutive time keys that bracket the current time, retrieve npc's position at those times and lerp between them to get the exact position at current time.