Hi, I'm currently going through the 2D game tutorial, but I've hit a wall despite following the tutorial to the letter. By writing this code:
func _physics_process(delta: float) -> void:
var direction: = get direction()
velocity = calculate_move_velocity(velocity, direction, speed)
velocity = move_and_slide(velocity, Vector2.UP)
I receive an an error stating:
"error(7,1): Too many arguments for "calculate_move_velocity()" call. Expected at most 2."
Is there a reason for why this is happening? Is there any way around this problem?