Jay: How does sound work in Super Mario 65? - dataEcto/super-mario-65 GitHub Wiki
For sound, I have tried various methods. Before, I would create a new script and call it "audio carrier", and for each moment I need a sound to be played, I would set up a static boolean at the start of the script. For example, if I want Mario's walking sound to play when Mario walks, I will first set the boolean to true when movement is triggered, and in Audio carrier, when the static boolean is true, play the walking sound. However, I found out that there are sound clips that I want to play in loop, and sound clips that I want to be played only once, that are all played through one audio source. Therefore, I changed my mind and decided just to put each audio as its own audio source, and call each individual audio in its own audio source, so it won't cause confusion. There are definitely easier and more convenient solutions, but I am glad audio works in this game.