So I'm working on a top-down rogue-lite game and I am looking to get some help with some code. what I'm trying to do is flip the player character sprite depending on what side of the sprite the mouse pointer is.
and a beautiful picture explanation in paint