player collides with wall after being turned

,

Hi, I’m making a 2D fighting game and when the player is launched he gets turned to lie down in the air like other fighting games. Problem is if this happens in a corner they will get stuck in the wall and pushed under the map. I’ve tried to move the player back out if they stay in the wall’s collision but they still get stuck.