AudioStreamPlayer isn't working (beginner)

Godot Version 4.3

Hey big beginner here, I’m trying to make a script that plays a sound every time I click the button, but it doesn’t work.

When I activate the “autoplay” function the sound works fine at launch, but it is impossible to get the sound to work when I click on the buttons.

Thank you in advance, and sorry it’s the solution seems obvious for you, I tried a lot of things, but nothing worked.

i think the problem is that you change scenes immediately which deletes the audiostreamplayer

1 Like

You are right, I made an audiomanager scene and it worked perfectly ! Thanks :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.