Due to the default rotation style, sprites rotating will appear upside-down. You can change the rotation style of a sprite by selecting it and using the buttons that appear when clicking on the direction input in the header of the Sprite Pane. "Left-right" is most likely the best for this.
There is also a block to change the rotation style dynamically: Set Rotation Style ().