• Advertisement
Sign in to follow this  
  • entries
    686
  • comments
    1952
  • views
    386910

Hmmm...It's pretty late, or early

Sign in to follow this  

70 views

Well, it's 2:00 in the morning, but I'm still awake, so I'll post about AI![grin]

I've been thinking about how I want to work the AI for my new game. I'm going to use a state machine to control the AI's behavior. I have thought of the following states that I will use:

Advance:
The AI will move towards the player's army while staying in a group.

Attack:
The AI will start a full attack on the player's army.

Defend:
The AI will hold its position and find cover near its location, than it will wait for the player to attack before attacking back.

Retreat:
The AI will calmly retreat away from the enemy, sticking as a group.

Flee:
The AI will panic and run in a random direction, hoping not to get slaughtered by the player's army.

That is what I've got so far. Now I've actually got to put this into code.[smile]
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement