Error: Too many arguments for "move_and_slide()" call. Expected at most 0 but received 2. How to fix it?

Godot Engine 4.2.1.0

I’m making a horror game and wanna add a crouch function in my game, but editor giving a error, how to fix it?

It would help quite a bit if you posted the code that is causing this problem. Anyway, you’re probably using code written for Godot 3. In Godot 4, this function is without arguments.

3 Likes