Why one object can play sound while other not?
Best Answer
-
olokolo96 Posts: 6
I've realized what is cause of this. The sound just wasn have time to play bevore the parent node was deleted.
I've realized what is cause of this. The sound just wasn have time to play bevore the parent node was deleted.
Answers
i use play() function, playing and autoplay is turned off
Are you using an
AudioStreamPlayer3D
by any chance?No, im using AudioStreamPlayer2d. Thats confusing because on other objects it works properly. code for pick up funcion of coin :
func pick_up():
$Sprite.self_modulate.a -= .075
if $Sprite.self_modulate.a <= 0:
queue_free()
$weed.play()
position.y -= 1
weed is my sound node xD
I've realized what is cause of this. The sound just wasn have time to play bevore the parent node was deleted.