As the title says, I want to keep the player still whenever I disable the movement. To disable this, I use a variable "movement", which only lets the player move whenever it is true. The issue is that whenever I set this variable to false, if the player is moving, it will keep the player's momentum, that is, the player keeps moving in the same direction it was going just before stopping the movement.
I would appreciate any help (using Godot 3.5 btw)