I am currently developing a simple soccer game with the following features:
- 2 teams, each with 3 controllable players
- 2 AI goalkeepers that moves around the goal area, and chases the ball when near the area.
- The players when not dragged to move to a specific point, will move around randomly in a specific area.
- It’s a 2D, top camera view game.
What I am looking for is answers on how to PROGRAM an AI Goal Keeper and Player.
FYI, there are no obstacles (thus no need Pathfinding). All players should not be chasing after the ball.
I have been searching around the web but to no avail. I hope someone can enlighten me about AI for Goal Keeper and Players.
Thank you.