#Why isn't this working?
2 messages · Page 1 of 1 (latest)
In godot 4 you need to use the variable velocity (so instead of using your created var vel, just use velocity, and do not create it because it's already declared for CharacterBody2D).
Secondly, move_and_slide doesn't use any arguments now, so just call it as move_and_slide()