State Machine
The AI element of the state machine (Introduction to: NWC603COM – Using AI in Computer Games Assignment 1 - 4.1 State Machine) is one that is applied to an AI which during game play will have to to have at least two of the four states evade, attack, find aid and wander. Now in my game I will be applying two of these states to my zombie AI's so that's the two I am going to focus on.
Attack - The attack state will be used in my game when the player character enters room B which will trigger the zombies to move from a wander state into an attack state and move it to kill the player character, these two states combined can transform a stable patrolling AI into a killing machine as soon as the player character is near, you can see this from the image above.
Evade - One of the two other status's of the state machine s the evade state, this is when the AI has been in battle with the player character and to escape from the situation, the AI will move into an evade state. This really means to run away and find a safe location. Now this state is not used in my game.
Find aid - Find aid is the final state and again, not used in my game. This state is used when the AI has taken damage from the player character, to get into a find aid state, first the AI will have had to be in an evade state (run away\hide) from here the AI can be safe to increase the AI's health. Once the AI has restored its health it will then revoke back into a wander state and begin the process again.
Games today where this AI technique is used would be Call of Duty, Battlefield and most shooter games. So once I apply the attack and wander sections of the state machine to my zombie AI's, they will have algorithm to chase down and kill my player.


No comments:
Post a Comment