Godot 4.3
Hi! I am currently working on a godot project and I need my sprint button (shift) to make you go faster when held down while pressing left or right, and when it is released, making you go back to your regular speed.
Here’s what I tried:
if Input.is_action_just_pressed("run"):
const SPEED = 800.0
if Input.is_action_just_released("run"):
const SPEED = 600.0