Day 4

Artificial intelligence - recognising and attacking the player character


I wrote a C Sharp script for the AI character to change colour when it sees the player and when the player gets in the attack radius, the AI will chase the player. The code below defines the AI character's behaviour when it sees the player. 


To make things easier, many variables such as "attack distance" can be changed. 

Comments

Popular posts from this blog

Day 7

Day 5

Day 2