This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Until 1 Dec 2026 all licenses are 30 % off, for example the Indie Bundle for €69.30 instead of €99. The code BLACKFRIDAY is applied automatically at checkout.
See licenses Try it for freelocal musicVol = getObject('Values[val_musicVol]') -- get value for storing music volume
local soundVol = getObject('Values[val_soundVol]') -- get value for storing sound volume
local speechVol = getObject('Values[val_speechVol]') -- get value for storing speech volume
local getCond = getObject('Conditions[cond_muteSound]') -- get condition for checking if sound is muted or playing
-- let's create a function to toggle sound muted / playing!
function toggleSound()
local cond = getCond:getBool(VConditionValue) -- check condition value
if not cond then
getCond:setValue(VConditionValue, true) -- set condition to true
musicVol:setValue(VValueInt, getVolume(eMusicVolume)) -- store current music volume
soundVol:setValue(VValueInt, getVolume(eSoundVolume)) -- store current sound volume
speechVol:setValue(VValueInt, getVolume(eSpeechVolume)) -- store current speech volume
setVolume(eMusicVolume, 0) -- set music volume to "0"
setVolume(eSoundVolume, 0) -- set sound volume to "0"
setVolume(eSpeechVolume, 0) -- set speech volume to "0"
else
getCond:setValue(VConditionValue, false) -- set condition to false!
setVolume(eMusicVolume, musicVol) -- restore music volume
setVolume(eSoundVolume, soundVol) -- restore sound volume
setVolume(eSpeechVolume, speechVol) -- restore speech volume
end
end
toggleSound()i think i didn't. i have no idea how scripting works, not at alldid you add the conditions/values listed in the script somewhere inside of the editor?
This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Through December 1: all licenses 30% off, for example the Indie Bundle for €69.30 instead of €99. Applied automatically at checkout.