Fuzzy logic controller

 Author: Pedro Polanco    

    I ran into a problem when trying to implement a fuzzy logic controller. at the time I was having a hard time grasping the concept of fuzzification and putting the fuzzified input into an inference system to modify effectiveness. The controller not working would not cause a real issue for the player but without it the overall game experience and combat with a boss would be severely lacking the bosses would be very linear and feal stupid. 

    After some researching, I realized that I should be taking the inputs and putting them within a 0-1 range and taking the minimum of those input values to determine the truest value. I then used that value and a set of ranges to determine if the current boss's strategy is effective or not and based on how effective it was applied it to his current effectiveness stat. This allowed for the boss to make better decisions on when to switch strategies so when the player goes through multiple runs of the game the boss variation would be different each time making it a different experience each time.

Comments

Popular posts from this blog

Adding assets to every enemy -- Owen Meyers

Sphere to AABB collision