Sounds occasionally do not play when using AudioStreamPlayer

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

I have two triggers for sounds. One pretty much always works and the other usually doesn’t, except for when they are triggered within a few seconds of the game’s launch. The issue isn’t the trigger, since the other things that happen in the trigger occur. I also know the issue isn’t the syntax for playing it, since I use the exact same syntax in triggering the sounds that do work.
Why aren’t they playing and what could be a solution?

Hard to tell without code, but have you tried to writing a debug message into your script to root out what happens? Try inserting a print command to print your variables or trigger when they process and see if they are actually changing. That’s how i would start.

SnapCracklins | 2022-04-26 20:16