OK I've been stuck with this all weekend with no luck, can some one tell me whats wrong with this bit of code:
if playerMove == "no" and loopCount == 0 then
tankidle:play()
loopCount = loopCount + 1
loopCount2 = 0
tankdrive:stop()
end
if playerMove == "yes" and loopCount2 == 0 then
tankdrive:play()
loopCount2 = loopCount2 + 1
loopCount = 0
tankidle:stop()
end
Its playing .wav sounds and they are looped.
I did also try doing another way of playing it using the
local sound = filename
voice = sound:play()
but that didn't work very well, beacause every time I tried to stop one sound it was ok but if i tried stoping the other it just wouldn't work.
So if someone could help me out here please.