Today I wanted to create an AI system that will be used for the future enemies and NPC's within my game. At the moment its very simple, the objects that represent the enemies have code written into them that tell the enemies to follow the player if he comes within a range of 256. The enemies are coded to only follow the player if he is in the view of that enemy, meaning that if you stay behind the walls you'll be safe. I will eventually make it so the enemies can attack the player, and the player can fight back. today I've learned how create a basic AI system. Tomorrow I plan on finishing the walking animation on the player.
the collision code that instructs the enemies to follow the player. I can change the speed of which the enemies can move along with the distance they will follow the player to.


This is an example of how the enemies follow the player while he is in their view.
No comments:
Post a Comment