Re: Having issues when trying to divide my bgt script into functions
Declare the ding sound as global, that is above the main function, not inside it. Like this, you call the dingplay function from within void main but thesound is still local (available) only to the main function.
Or, a simpler way, why use a separate function just to play one specific sound looped? You could equally as well just have the ding.play_looped(); line directly in the main function, right below the line where you load the appropriate file into the sound object.
Hope this helps,
Lukas
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector