Game Problem

Nov 5 2009 11:02 AM

I am trying to program a game.  To keep it short, the object of the game is to bet on one of 4 dogs, hit start race, the dogs run, and if your dog finishes first you win.  The problem I'm having is with the audio.  I have audio playing in the background the whole time, and when you hit start race, the code will stop the background audio, play an audio clip of a gun firing, and then the dogs run.  The problem comes right after the audio clip of the gun firing finishes up. As soon as it does, the dogs start running slower across the screen, like the program is lagging.  I know it has something to do with the audio, and specifically with the fact that the audio just finished playing because if i remove all audio, it runs fine.  If audio plays the whole time the dogs run, it is fine.  Any ideas? I can post the code if needed.  Thanks.
 

Answers (2)