Button Holding Not Working

Godot Version



i am trying to make a super basic wall running program, it works without pressing any buttons and i take out the if “input.is_action_just_pressed” but i want it to only work when holding w and the space bar

if not is_on_floor():
			if is_on_wall():
				if Input.is_action_just_pressed("Space") and Input.is_action_just_pressed("Forward"):
					velocity.y = jump_gravity * delta
if Input.is_action_just_pressed("Space") and is_on_floor():
	velocity.y = jump_velocity

The second one is probably what you are looking for

it did work thanks :slight_smile:

1 Like

thanks so much, ill see if this works