Why player not moving on x axis

Godot Version



Video Showing The Issue

Why wont this player move on the x axis even with all dis code (im smashing a and d as much as i can when loading the game, but its only moving up and down)

you have “move_right” twice, but are missing “move_left”.

You’ve written "move_right" on both line 19 and 21, which means that when you press the D key, it will first add 1 to velocity.x, and then immediately subtract 1, so it ends up at 0.

wow im dumb af thanks