I've made it so that the opponent would rotate from a attack, but they rotate from their foot instead of the middle of their body, any help is appreciated.
It's base on the sprite set being rotated. Chances are, you're calling an animation whose axis is set at the feet. Set a custom animation in your character's AIR file and use changeanim2 instead of changeanim to call it so you get the one whose axis is based entirely on the center of the body.