Hi ho there!
I’ve got 2 questions, quite small i think.
Audio Reservation - Easier way to silence other channels?
I’m using audio.reserveChannels() to reserve channel 1 for music.
The rest is for game sound effects.
I have 2 mute buttons; 1 for music and 1 for Sounds.
I have done the music one, ‘audio.setVolume(0.0, { channel=1 })’
To do the sound effects i basically have to setVolume(0.0) on all the other channels except channel 1.
Is there a way to specify all other channels or does setVolume without channel specification work on all channels that are not specified?
Or something like it?
localise functions
I have a local function that calls when the player collides, it ends the level.
Within that function i have a timer which calls another function.
I could not get that timer function to call unless i leave out the local part.
See Below for Code it’s clearer)
local function levelCompleteSensor (e)
if (e.phase == "began" and e.other.Col == "player") then
audio.play(tada);
timerStash.newTimer = timer.performWithDelay(1000, compStar1); -- take no notice of syntax, just a module to help deletion.
end
end
function compStar1() -- This wont call from the above timer unless it's function without the 'local', and outside of the above function.
print("Yay");
end
Can anyone enlighten me a way to get that local? as it worries me 
Thanks in advance,
Your loyal servant,
Me. [import]uid: 91798 topic_id: 17820 reply_id: 317820[/import]
