VampirePrince I am actually making a horror game too. You need a conditional that determines whether you run or not and a different speed for your player to use. So add something like this:
export var RUNSPEED = 300
export var RUNACCELERATION = 2
var isRunning = false
and then have a function to listen to each frame for running:
func _RunningMode():
if Input.is_action_pressed('run'):
_isRunning = true
else:
_isRunning = false
and we listen for that function each frame.
then to your _physics process(delta)
function after the 'input_vector' line we change the movement speed.
func _physics_process(delta):
_RunningMode()
var move_direction := input_vector.normalized()
if isRunning == true:
move_and_slide(RUNSPEED * move_direction)
else:
move_and_slide(SPEED * move_direction)