Hello everyone, i will explain my problem as good as i can. I'm doing a school project, my game is simple. A 2D fighting game at a Japan feudal era. I have one player who is fighting his brother, "The boss" of my game.
I managed to make the state machine of the main character which works pretty fine, but since i have no experience with making games or AI, i'm facing a strong difficulty at making a boss AI.
I watched a lot of tutorials and i found one with a state machine structure that i like but i have one problem. My boss is not facing the right direction nor doing the attacks i want, he just face the player go into his direction, but i when i face the opposite direction, the boss is running backward, it's been 2 MONTHS since i struggle with this problem, i really need help, the deadline is tomorrow.
Here's the code of my boss, all of it ! By the way, if the values are on negative it's because of the "x" axis being negative, at the left like we learned in school.
I'm sorry for all of this images, i really need help, and i don't know how to fix all of those problems, is my state machine bad ? What did i do wrong ?
Thank you in advance.