Re: Some questions about bgt
Are you giving a chance for the sound to play? E.G if your application finishes execution or the variable goes out of scope, then your sound won't play.
Regarding your second post, this check for if (score < 10) is probably done multiple times a second. When the check succeeds, the music starts playing but then in the next game tick, its done again and the music starts playing from the beginning. You could fix this by checking the status of the sound. Something like this:
if (score < 10 && gamemusic1.isPlaying() == false) // i'm not familiar with BGT's api, but you get the idea.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector