Original Post
Merry christmas to you all! Anyway, I'm currently developing a game server and I have a question for the AI gurus out there :p It's about the monsters, which I want to walk next to the player and then attack them when they are near enough. The thing is, the players on the server are almost always moving so it would be a big waste of resources to calculate a full path to the player everytime and then recalculate it when they move. What I want is basicly some algorithm that can make reasonable good guessing moves to find the player(I'm not sure what that's called, but isn't it called a heurestic function or something in the likes?). So instead of having the full route calculated, it only calculates the best spontaneous next move. Am I making any sense at all? Heh I hope so :P If that algorithm doesn't exist, then can anyone suggest some good fast, fairly accurate method of finding the path? I would be very grateful if anyone could link me to an article or to a sourcecode or perhaps explain or give me the name of some algorithm that can do good reasonable guessing of what direction to move to. Thanks a bunch :) /Evig