Skip to main content
Tweeted twitter.com/#!/StackGameDev/status/629035329442435072
Split paragraphs properly. Clearer title.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

4 directional avoid How do I make an AI that stays at a distance from the player act correctly when cornered?

I am working on a few different AIs for a tile-based game. NeedI'm trying to figure out one where itthat tries to keep a certain distance from the player. So if distance becomes small, move away. The

The whole game is in a pretty small are so it can't just forever move away. The movement is 4 directional. So, any idea how to

How do I make the AI keep going at a distance, and once caught in a corner or close to a side of the room, to ignore the rule and just try to go around the player to the other side of the room?

4 directional avoid player

I am working on a few different AIs. Need to figure one where it tries to keep a certain distance from the player. So if distance becomes small, move away. The whole game is in a pretty small are so it can't just forever move away. The movement is 4 directional. So, any idea how to make the AI keep going at a distance and once caught in a corner or close to a side of the room, to ignore the rule and just try to go around the player to the other side of the room?

How do I make an AI that stays at a distance from the player act correctly when cornered?

I am working on a few different AIs for a tile-based game. I'm trying to figure out one where that tries to keep a certain distance from the player. So if distance becomes small, move away.

The whole game is in a pretty small are so it can't just forever move away. The movement is 4 directional.

How do I make the AI keep going at a distance, and once caught in a corner or close to a side of the room, to ignore the rule and just try to go around the player to the other side of the room?

Source Link

4 directional avoid player

I am working on a few different AIs. Need to figure one where it tries to keep a certain distance from the player. So if distance becomes small, move away. The whole game is in a pretty small are so it can't just forever move away. The movement is 4 directional. So, any idea how to make the AI keep going at a distance and once caught in a corner or close to a side of the room, to ignore the rule and just try to go around the player to the other side of the room?