B
Bastendorf
Guest
Sorry to be a bother again, but this is the other one I've gotten stuck on. And I'm sorry if this was already asked, but I just don't have the energy or ADD suppression to scan through 133 results related to the keyword "pathfinding".
I'm making an isometric game. Legend of Zelda (the original) being the closest example I could think of off the top of my head. For it, I need for enemies to chase the player. I've already gotten this to work, but it looks harsh and unnatural the way they move. They tend to zigzag noticeably while giving chase at certain angles, and they usually don't walk straight towards me.
The method pictured on the left is fine for tight spaces, but not so much for open spaces like my game would have.
I'm already aware of the method that has an object follow the path and the enemy follow the object with a slower speed, but I feel like that would be a little on the slow, resource heavy side, especially with potentially many enemies chasing the player.
I'm using mp_grid_create and path_start, currently. My hope is that there's a way to get it to recalculate the path after it has determined the grid spaces are open, so that the route taken is more efficient and natural looking. Or at the very least, I'd settle for taking mostly straight lines, line the ones above, and moving towards every second or third point. (It could only be straight lines that did this, though, because it would still have to get the enemy around corners.)
Maybe the solution to this is obvious and I'm just a moron (which I am), but I couldn't figure one out, and I couldn't find any tutorials on it. (Probably because it's not possible. Ya pessimism!)
Any help is appreciated.
I'm making an isometric game. Legend of Zelda (the original) being the closest example I could think of off the top of my head. For it, I need for enemies to chase the player. I've already gotten this to work, but it looks harsh and unnatural the way they move. They tend to zigzag noticeably while giving chase at certain angles, and they usually don't walk straight towards me.
The method pictured on the left is fine for tight spaces, but not so much for open spaces like my game would have.
I'm already aware of the method that has an object follow the path and the enemy follow the object with a slower speed, but I feel like that would be a little on the slow, resource heavy side, especially with potentially many enemies chasing the player.
I'm using mp_grid_create and path_start, currently. My hope is that there's a way to get it to recalculate the path after it has determined the grid spaces are open, so that the route taken is more efficient and natural looking. Or at the very least, I'd settle for taking mostly straight lines, line the ones above, and moving towards every second or third point. (It could only be straight lines that did this, though, because it would still have to get the enemy around corners.)
Maybe the solution to this is obvious and I'm just a moron (which I am), but I couldn't figure one out, and I couldn't find any tutorials on it. (Probably because it's not possible. Ya pessimism!)
Any help is appreciated.