Hi everyone, this one's fairly simple,for someone experienced anyway. I have a simple audio file that plays when my street lights come on, but it wants to loop even with the loop turned to false. It just plays over and over, I've tried setting variables to shut it off, but not sure what direction to take it to make this work. Here's my simple code right now:
if (!audio_is_playing(sfxLightBuzz))
{
audio_play_sound_at(sfxLightBuzz, oFLoatingLampOn.x, oFLoatingLampOn.y, 0, 0, 100, 300, 1, true)
audio_sound_gain(sfxLightBuzz,0.3,500)
}
Any ideas? This seems like there should be a simple option to have it play once.
if (!audio_is_playing(sfxLightBuzz))
{
audio_play_sound_at(sfxLightBuzz, oFLoatingLampOn.x, oFLoatingLampOn.y, 0, 0, 100, 300, 1, true)
audio_sound_gain(sfxLightBuzz,0.3,500)
}
Any ideas? This seems like there should be a simple option to have it play once.