Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

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

Sign in to follow this  


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:

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

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

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

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

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  


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!