How to make smooth character movement

well you didnt even follow the posts cause the code is already there

What do you mean? i litterly did what the tutorial said. Could you than tell me what i did wrong?

well, there was code, but i changed it because there was a error.

i changed the line, to this line of code:

mainMoveVector = mainMoveVector:lerp(targetMoveVector, math.clamp(dt * MOVE_ACCELERATION, 0, 1) )
1 Like

the lerp function is lerp(a, b, t) = a + (b — a) * t