by skydereign » Mon Aug 22, 2011 10:43 am
Nope, there are known problems with this, but that's just how it works. For gE to play your sound, you need to have a PlayMusic2 or PlaySound2 call with the name of the file. Otherwise gE won't keep the file. This has been a problem for me as like you I prefer to keep it in an array or similar, but what I usually end up doing is this. Have a function for playing music, and just put in a switch that has the many PlayMusic2 calls. This appeases gE's need to have the PlayMusic2 function calls, which is rather sad... What I do for sounds is just have a function that stores all the PlaySound2 calls, that way I can use more custom sound functions.