4 ms·
Well, teleporting is a tough problem to solve to begin with. One way to solve it is to have enemies distributed uniformly and restrict their movement to subsect
by rochak 7y ago
Well, teleporting is a tough problem to solve to begin with. One way to solve it is to have enemies distributed uniformly and restrict their movement to subsections. Once the player teleports, only the enemies in the closest subsections will use the algorithm to reach the player.
- Skunkleton 7y agoYou could use a traditional path finding algorithm, letting the mobs look around confused while the path is computed.