Hi, when my function boumTest is active, it’s the sound of the function scoreSound that i hear. Why ?
normaly i have to ear the bumSound but it’s seems that the scoreSound is more important than the other…
function scoreSound() piece = audio.loadSound( "piece.wav" ) audio.setVolume(0.01, { channel=piece}) piece = audio.play( piece ) end
function bumSound() bum = audio.loadSound("boum.mp3") audio.setVolume( 0.99, {channel=5}) bum = audio.play( bum ) end function boum() bumSound() local function boumtest (event) print (flagCircleonTransitionOnLife) if flagCircleonTransitionOnLife == true then print("CircleonTransition.x",CircleonTransition.x) if CircleonTransition.x \<= 80 then boum() end if CircleonTransition.x \>= 395 then boum() end end end Runtime:addEventListener("enterFrame", boumtest)