I am making a 3D game in DirectX11. The idea of the game is a snowball fight between two snowmen.
One is controlled by the player and the other is controlled with AI.
It's my first proper game, so I wanted to keep it as simple as possible, and the only thing I wanted the AI to do was:
How would I code the opponent to move towards the player for five seconds, then stop for two seconds, fire one snowball and then repeat until either the opponent or they are dead?
The problems I had were how to get the AI snowman to react to the players location and go towards them.
Thanks in Advanced,