Literally the only thing left to do before Don’t Look Back is finished is to implement the music and sound effects into the game – I figured this wouldn’t be a big deal, but unfortunately I’ve run into problems 🙁
It turns out that because of the way MP3 files work, it’s almost impossible to make them loop cleanly – which destroys the ambient background effects… And Flash 9 supports only MP3s, so I can’t even use WAVs instead.
There are two things I’m going to try, probably: First I’m going to attempt to crossfade a repeating ambient background sound effect into itself as it finishes – I sorta have this working already, but it’s a bit messy and you can clearly hear the intersection at the end of the sample, so it’s not really much of an improvement… Maybe if I spend enough time tweaking it it’ll sound ok, though.
The other possibility is to take a different approach to the sound design – instead of a 10 second raining sample say, I could come up with a load of small rain samples that each play once randomly – this way I wouldn’t have the looping problem. But I’ve got no idea if that’ll actually work.
Even if this does fix the ambient sounds, a far more serious problem is that I can’t cleanly loop the music. I don’t really know how to fix this – I don’t know if I even can.