Hello! I have been working on a game for quite a while now, it's 3d, and it's an FPS (First Person Shooter). I want to have it where you shoot the AK-47 Rifle, it makes a gun noise. I want it to be a semi auto gun, so it can only play the shooting noise once.
For example:
//load stuff here
dbLoadSound(1, "gunsound.wav");
while(LoopGDK)
{
//game stuff here
if(dbMouseClick())
dbPlaySound(1);
}
It keeps turning into a fully auto weapon, because of the while loop, and the while loop is manditory for the game to run. Any ideas on how to fix the audio to be semi auto
shooting?