It`s because you gave an extra tab to the physics process. Notice closely, you wrote the physics process function inside the handle_input.
so do i delete handle input? how do i fix that? (please be patient lol, i just started learning yesterday XD)
i figured it out lmfaoooo
how do i avoid this in the future?
Make sure you won’t add an extra tab before the function declaration.
yes but what is a tab? like the actual tab button or is it something special
Yes, it’s the actual tab button. Furthermore, if you press ENTER at the end of an indented line, Godot keeps this indentation at the next line as well. That’s what happened to your code, I guess. So before you start writing another function, make sure the current line isn’t indented (and if it is, press backspace until you delete all tabs).
When the current function ends and you pressed enter, then just press backspace and remove all tabs in the current line so you can start a new function then.
ooooooh, dude you are both a blessing, thank you so much for the help man i really appreciate it!
dude, thank you sm, i really appreciate you!