Switch Sides After Jumping Over

If I had a character, and that character jumped over another, how would I go about making the character that jumped to switch sides?
As in, everything he/she does is now mirrored and vice-versa, like fighting games do.
What would the logic be behind that?