top of page

Matthew Judge
Video Game Programmer
AI State Machine
After learning about state machines in a programming class, we were assigned with making an AI state machine in unity. The colors of the cube AI correspond to the state it is currently in. When its in the green patrol state it will move between the four white blocks. When the player gets near it will change to a red chase state it will follow the player as long as the player is within a set distance. If the AI gets even closer to the player it will enter a purple 'shoot' state. This would be where the attacking would be programmed in. If the player leaves its aggro range while its chasing it will turn into a blue search state to wait if the player comes back into range, if not it will turn to a yellow retreat state and go back to patrol once it returns to a patrol point.
bottom of page