So I have a variable I use to track the players progress through a level which increases linearly and every couple of numbers I want to play a sound, as I am still pretty bad at coding i’m having trouble working out how to do this, any help?
Each time you increment the progress variable do:
if ((iProgress % 3) == 0)
audio.play();
This will play the audio on any iPrograss that is evenly divided by 3. Is this what you are looking for?