fixed your problem, just backpack the player sprite here, delete the player sprite in your project and put the backpacked player sprite there
there are a lotta stuff i changed in the player sprite, not just the code, that's why i told you to backpack it if you dont know what is backpack wtch this: https://www.youtube.com/watch?v=AuolBPY8qdc or https://www.youtube.com/watch?v=dQw4w9WgXcQ