Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

More AI problems

As I continued through making sure the skeletons were good to go, I have the code implementation about 80 percent finished. The only thing I have problems with now, are certain bugs that are occurring in attack code and perhaps the behavior trees associated with our skeletons. I would say the current code works okay, but the bugs that are posing problems can certainly break a game. Right now, when the player is perceived, the skeletons will run towards the player and attempt to attack (Now with animations!). However, when they attack, the skeletons will sometimes be stuck in attack mode, and will not move to the wander state if the player is out of line of sight. I believe this has something to do with the skeleton not breaking out of the attack code. I think I may have to do a different work around for the attack code, because although this is an okay AI, its not the best it can certainly be. I will need to do more research as I move along into next week.

Other than that, I did end up implementing a teams functionality, where actors on the same team don't attack one another. This works pretty well, as it will just ignore the actors on the same team, not perceiving them . Here's how!

Glad to be working on this for the whole month, and heres to next!

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.