Thank you!
Yeah, I had some ideas for how to fix that, but there were other problems that took greater priority. The issue was that the player always rotates on the z-axis, so if you're facing certain directions when flipping, you'll end up turning around as well.
In any case, thanks for playing!