Making a jump sound for when the player jumps

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gio_exe

So I’m kind of new to Godot and programming in general so I tried making a jump sound for when the player presses space, but I’m not sure why it doesn’t work. Here’s my code:

	if Input.is_action_pressed("jump") and is_on_floor():
:bust_in_silhouette: Reply From: VBGames

just used that

$ sound with your resource jump sound))


if your AudioStreamPlayer has sound

just use $