Dodging Mechanic

By: Austin Leskin

April 9, 2018

I was anticipating on working on Fuzzy Logic but I keep getting side tracked on making the AI work a lot better and also a dodging mechanic to avoid getting hit by the player. I had to switch the way I setup my AI a little bit to introduce state such as attack, which I already have and take cover which I worked on last week. This wasn’t too much trouble and it ended up working pretty well, the only this I had to work out was how to switch the states since I don’t have fuzzy logic yet. A simple key press did this and I was able to have the AI attack the player and throw balls as well has find the closes cover and hide from the player, this lead to some funny moment as the AI looked like he was scared of the player and was hiding for his life. Moving on to dodging this was another this I just took from the player and implemented it to the AI and now if a ball comes near the AI and its tag is the players ball it will had an impulse to the enemy in a certain direction.

Comments

Popular Posts