itch.io is community of indie game creators and players

Devlogs

Roaming EnemyAI Progress

Mirrors
A downloadable game for Windows


The Second issue I ran into was my Roaming Enemy AI not roaming there were a lot of things that were causing this to happen. The first cause was the roaming function I had not been called at all. The second cause was the StartCoroutine not being called and used in the right spot another cause was I was missing a yield return null. Debugging where I was making the calls to my function as well as researching how StartCoroutine works helped fix the issue I was getting. The final issue I was having with my AI was it only roamed to one specific position and did not go anywhere else after and it was also roaming to the edge of the map. The first issue I fixed for this was going to the edge of the map this fix was easy because I had a roaming dist variable which made it how far the AI traveled all I had to do was shorten it. for the AI not constantly roaming fix, I just took the logic for roaming and put it into a loop so that It continuously roamed.

Download Mirrors
Leave a comment