Topic was automatically imported from the old Question2Answer platform.
Asked By
Moosyu
I am trying to make a sprint system for my game but I am unsure how to make my character run only when I am holding down a key because right now the character stays sprinting forever. This is the code I am using: func _input(event): if(event.is_action_pressed("sprint")): walk_speed = 6.0 print("Sprint Pressed!")