the very simplistic movement code:
velocity.x = move_toward(velocity.x, dir, 50 * delta)
(when pressing left or right dir changes from 0.0 to -1.0 and 1.0)
the problem:
I still cannot figure out why, but in any other case, this code would work just fine. I've debugged and used a lot of prints to try and figure out what it is... But this code from what I can tell isn't even influenced by anything else? Maybe it's just a math thing?
Basically, what is supposed to happen is the character is supposed to move left and right with the direction variable (Input.get_axis("left", "right")) but instead of the value capping when you move left, it instead increases incrementally (not exponentially) without capping. Still, debugged and I proved it hasn't been caused by any external things in my scripts, so I genuinely think it could just be a math issue or something.
any answers are appreciated!!