#My sound doesn't work

1 messages · Page 1 of 1 (latest)

crystal reef
#
    if Input.is_key_pressed(KEY_C) and not is_sliding and slide_cooldown_timer <= 0:
        $AudioStreamPlayer3D.play()
        is_sliding = true
        slide_timer = SLIDE_TIME
        slide_cooldown_timer = SLIDE_COOLDOWN

When you press C a sound should play, but it is simply not heard, the node path is correct

loud remnant
crystal reef
loud remnant
#

You can send a ss

crystal reef
loud remnant
# crystal reef

Is there like a sound tab for it at the lower part of the screen? Kinda like what animated sprites have

loud remnant
crystal reef
#

I'm not sure I did it right, at least it didn't give an error, but there's still no sound.

onready var sound = $AudioStreamPlayer3D

func _ready():
  sound.bus = "sound"

if sound.stream != null:
  sound.play()
#

I don't understand sound, but there's no need to somehow tie it to follow the player in a 3D scene