Jump to content
Sign in to follow this  
  • entries
    686
  • comments
    1952
  • views
    387718

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

Sign in to follow this  
Stompy9999

81 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!