Thanks, it was just giving me a massive headache the other day because I kept trying to do it in one line, but the moment I split it into two it worked XD. I just started with Godot. I heard good things about it, so I thought I should give it a try.
Also, on a side note, I couldn't find info online that stated that rotate will rotate the player, and I spent forever using trigonometry and look at to get my player to spin in circles.