I have never worked on an AI for this game before now so there was a steep learning curve. I wanted my ai to follow me and it wouldn't. I eventually figured out that the cause of that was due to the controller not automatically possessing my AI on spawn. Then its speed wouldn't adjust using my speed adjustment function that I had built. Eventually I figured out that there was a bug in my code. The speed could be very easily changed in the stats component but that wasn't translating to the movement component. Eventually I realized that the function that is used to change speed only auto updates the player and every other AI had to call a separate function to finalize the speed change.
After all of that I got the behavior to work more or less how I wanted, and now I have a boss that runs if you get too close and casts spells but can't run whilst casting.
https://i.gyazo.com/2532a6242282eecc77f8179e4b3e8883.mp4
Kenny Phebus 7/9
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.