I have a problem with some sound. I’m trying to have fast firing weapons, but for some reason there is always a delay in the sound between the first and second shots. This then means that all the shots fired afterwards are out of sync with the sound. All other parts of the code work perfectly, bullets are created at the right time, its just the second sound that seems to cause a problem.
I have attached a stripped down version of the code, just hold left mouse to fire. If anyone has an explaination for this behaviour that would be great, but if people can confirm that they actually experience the same thing so i know its not just me that would be really useful too.
Basically-
Want: Bangbangbangbang
Get: Bang… bangbangbang
I cant think of a reason this should happen, given that I’ve seen thousands of flash games that dont have this problem…