Godot Version
4.2.2.stable
Question
So im making my player movement, and essentialy it snaps from walking_speed to sprint_speed. Lerping it makes it feel fast anyway.
I want to make velocity build up, not go from 0 to 1 in half a second.
if Input.is_action_pressed("sprint") and Input.is_action_pressed("forward") and is_on_floor():
if is_crouching:
current_speed =lerp(current_speed, crouchrun_speed, 1)
is_running = true
is_walking = false
else:
is_running = true
is_walking = false
current_speed = lerp(current_speed, sprint_speed, 1)
elif is_crouching: current_speed = crouch_speed
is_running = false
is_walking = true
If sprint, forward and on floor, current speed from walk to sprint speed.
(i am very new btw and havent found a solution online)