How to make a simple movement system in Scratch with physics?
Place these scripts in your main sprite/player. Ensure the player is positioned in the center when creating the costume in the Costumes tab.
You can find more tutorials in the category at the top right of the screen. Be sure to press the arrow dropdown so you can see more options!