V4.3
Hi, I just started learning Godot and have been following this tutorial: https://www.youtube.com/watch?v=LOhfqjmasi0&t=1688s
I have the animations mapped, and will play when I press the arrow keys. But the character won’t actually move. (Jumping works though)
This is my player script:
This is because you added an extra tab in move_and_slide() code line, you need only one tab, if you observe your codes, you placed it inside the statement if direction is 0 then it will move, that is wrong. So just remove one tab from it.
Omg thank you! I didn’t realize I put in an extra tab there at some point and was pulling my hair out trying to figure out what was wrong.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.