I did spend a substantial amount of time this week learning about Unreal C++ programming and Unreal's API. However, I have made the decision to focus solely on Unity C# for the remainder of my time at Drexel. I'm beginning to learn about coding AI for games in Unity 3D. Below are the scripts I wrote this week for programming a simple AI to attack and shoot at the player, while also remaining a certain distance away. I may build upon these scripts in future weeks in the scope of this course.
The first thing I did was begin coding a very basic 1st-person character controller, to be built upon later:
Next, some very basic enemy AI that pursues the player when the player gets withing a certain distance, shooting at the player. It will also stop advancing on the player when it gets within a certain distance, and even back up if the player gets within a certain distance of it.
Lastly, is the enemy's projectile shooting script, which will be built on later:



No comments:
Post a Comment