This week, I fixed the enemy character's AI. It now pursues the character and fires at random intervals, as it it supposed to. I want to make this a soldier character. The script is currently set to fire at where the player was a moment ago, rather than constantly be set to fire at where the player is every frame. I think that there is potential to develop this into an interesting game where the player is a superhuman character that can easily avoid the shooting reflexes of well-trained soldiers.
More importantly, I got into using a navmesh, setting waypoints, and programming in the Unity Editor. Learning to program GUI in the Unity scene view can be useful for creating tools for game development. This particular tool let's us visualize the pathways between waypoints that the AI character will be navigating between while on patrol or finding/pursuing the player character. The pathways are not where they should be because the editor script is not finished. I think that using waypoints to move AI agents through 3d space can be desirable. Depending on what I do, I may use this in my thesis game project. When this is done, the red box character should be able to navigate between the buildings to find the player.
Here is my updated code below:









No comments:
Post a Comment