Calculating AI Chase Distance

When I first followed the video and made the changes to the scripts in the Calculating AI Chase Distance, When I start the game the enemies will sit there and wiggle. They are stuck in a continuous loop of attack - stopAttack. I’ve went through the course three times and end up with the same results.

Post your AIController.cs and Fighter.cs and we’ll take a look.

I found where I made the mistake. I didn’t change the CombatTarget to GameObject like Sam did, instead I changed the lowercase combatTarget to gameObject.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms