Godot Version
4.7
Question
In the below code, the line that continues velocity still runs even if on the floor. Not even the Print statement runs, nothing is coming up on the Output Log! Its just the velocity applying line thats running for some reason. I know this because when I remove it the player stops sliding across the floor.
Yes, the Motion mode is on grounded, and the Up Direction is set to y = -1.
elif !is_on_floor():
if LastPressedRight:
print("MOMENTUM")
velocity.x = move_toward(velocity.x, SPEED , SPEED * delta)
else:
print("MOMENTUM")
velocity.x = move_toward(velocity.x, -SPEED , SPEED * delta)