how to make player fall normally (2d)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By LLC

i tried to add a wall to my scene and it all fine except one thing
if i hold “move_left” while not on the ground and collide with the wall
(i move the character with set_linear_velocity())
i stick to the wall until i release it
i tried to set the player’s linear velocity to 0 if the player touch the wall (while still maintain the vertical velocity)
but i still stick to the wall
i’m pretty new to godot
hope someone can help