Seems like the same issue as this thread no? How to play sound matching a sprite - #13 by user85
You stated that you did not get any error when re-running the game but did my solution work? Here mrdicerack is explaining the same solution, childing an AudioStreamPlayer and using $AudioStreamPlayer.play()
.
Make sure to paste code instead of screenshots
Posting here so to be linked for later use instead of re-typing this every time
Make sure you paste scripts instead of screenshots. To properly format pasted code use three ticks ``` at the start and end of your paste like so:
```
# type or paste code here
func _ready() -> void:
print("My ready function!")
```
Results in:
# type or paste code here
func _ready() -> void:
print("My ready function!")
Press the </> button or ctrl+e in the forum to create these ticks.
[2024-09-02…
1 Like