Hi everyone I have quick and hopefully easy question…So, I am making a game where each time 3 objects are matched a sound is played. I have it working with one sound. However, I would like to have a different sound played each time the 3 objects are matched so its not so repetitive. I have a totally of 5 sounds i want to use
sound1,sound2,sound3,sound4,sound5 all are .wav.
thank you
this is what i have:
local makePopSound = false
if makePopSound then
makePopSound = false
playSound(“sound1”)
end
then in my main.lua i have :
local sounds = {}
sounds[“select”] = audio.loadSound(“sounds/select.mp3”)
sounds[“sound1”] = audio.loadSound(“sounds/sound1.wav”)