There's a typo in the C# example code: MoveAndCollide(velocity * delta); should be MoveAndCollide(_velocity * delta);
@@ -263,7 +263,7 @@ Attach a script to the KinematicBody2D and add the following code:
public override void _PhysicsProcess(float delta)
{
GetInput();
- MoveAndCollide(velocity * delta);
+ MoveAndCollide(_velocity * delta);
}