Hello, I am creating a 'flappy bird' type game and I have run into some player issues. Currently the user can press the spacebar to make the bird flap, when the player reaches the left or right side of the screen, a bounce happens, which will send the player in the opposite direction. I have managed to make the wall bounce and animations happen, but when the player bounces off a wall, the angle in which the player is facing doesn't seem right. I tried multiplying the rotation_degrees by -1 and I can see it work for a short amount of time, but then it changes almost instantly to the incorrect angle. (I think some other part of my code is doing this, but I am not sure which part.)
I have attached a ZIP file with my Godot project. Not many things in the project yet. Only 2 scenes (Player and Main) and one script file for the player (~100 lines of GDScript). Its kind of hard to explain everything in text, if you decide to download and run the game, you will understand what I am talking about.
P.S. I am a beginner. This is my first time using Godot, and my first time using Godot's Forum.
EDIT: In the players script on line 49 I am using a print statement to see how many times this area of code runs.