Hi guys, thanks again for your help over the last week or so, I'd have been lost without it. The game I've been working on is now finished and I thought I'd stick it on here (I'll put it in the "Share your Work" section too").
However I do have one final, small, query. If the player loses the final boss battle, a laughter sound plays. For some reason a small part of it loops endlessly and I can't see why. Any suggestions would be greatly appreciated and I promise this will be the last thing I ask of you.
Okay, I've figured it out for you: Every time you call gameOver(), you rewind and play all of the sounds... You should only call those the first time that gameOver() is called. I'll leave that up to you...
I'm not rewind and playing all the sounds. pirateLaugh only gets played if you lose the LAST level, and I want the explosion to play every time gameOver() is called so that it plays every tiime you lose a level.
No, you're not getting the point... gameOver() is called every frame that the game is over; therefor, every frame that the game is over, you are playing the sounds, causing the weird stuttering effect that you hear.